Git didn't recognize rename of a file

I renamed one Java source file from to

Unfortunately git didn’t recognize this change. So when someone clones or pulls my repository he or she will have to do the renaming manually, because otherwise the project can’t build because this class is used in other classes.

  • Mac OS X 10.10 merge tool git bugs
  • Merge two git repositories of same project
  • How to multitask with Git
  • Why do I have to “clone” an existing Git repository to access it?
  • How do I generate a git commit log for the last month, and export it as CSV?
  • how to sync the local git repository to different remote one?
  • How do I make git recognize this change in order to commit and push it to the repository?

  • Github repo name and local folder name for repo
  • “branch … not fully merged” immediately after fetch
  • How to push tags to remote git repository with PHPStorm?
  • git - how to get the full message from git merge --log
  • git: checkout files from another branch into current branch (don't switch HEAD to the other branch)
  • Cron not running django command
  • One Solution collect form web for “Git didn't recognize rename of a file”

    Use git move function

    git mv "" ""

    EDIT: Added quotes as per QPaysTaxes excellent suggestion.

    Git Baby is a git and github fan, let's start git clone.