Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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?

like image 262
Paul Verest Avatar asked Dec 11 '12 09:12

Paul Verest


1 Answers

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

http://wiki.eclipse.org/EGit/User_Guide#Configuring_the_View

like image 51
Paul Verest Avatar answered Sep 29 '22 23:09

Paul Verest