Git: Renaming files with EGit causes deletion of file history

I use Eclipse EGit plugin to work with git repository.
(I even use it for local projects to track changes made by tools.)

However I discovered problem that makes usage for team projects not so good:
When renaming a folder or file, I get to commits 2 items:
1 to add as new, and 1 to delete.
This way there is no history who & when edited this file, no way to look back at evolution.

  • How to delete commits with egit?
  • EGIT does not add origin github remote
  • Can EGit (Eclipse git plugin) use an SSH key instead of a username and password?
  • Confused about Git (EGit) - Project in workspace is the same with project in local repository
  • “Replace with File in Git Index” appears disabled
  • eclipse / egit to see previous version of a file (git)
  • This problem is likely not caused by EGit, but git.
    See answer for Renaming in Git and Mercurial: Accuracy and automaticity

    How to keep history of files when a lot of refactoring and renaming is going on?

  • How to work on same github repo from two systems?
  • Macosx git autocomplete shows deleted branches
  • Sign git commits with GPG
  • Remove last pull github
  • Why does git worktree add create a branch, and can I delete it?
  • Git branch is in an inconsistent state due to a bad merge
  • 3 Solutions collect form web for “Git: Renaming files with EGit causes deletion of file history”

    See the Git FAQ, section Why does git not “track” renames?,

    This however does not answer how to keep history when usit EGit in Eclipse.
    I need to try

    p.s. Link for EGit. // Thanks to jszakmeister

    Note that with EGit 3.0, Rename detection was added to the file diff viewer in the History view and Commit editor (bug 335082):

    rename detection with EGit 3.0

    See git help log, particularly the –follow option.

    Don’t know how to do this in Egit, though, but if Egit isn’t doing what you want, why not use other tools to supplimement the basic functionality?

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