Git - will the file moves be detected?

Posted by Ben Aston on Stack Overflow See other posts from Stack Overflow or by Ben Aston
Published on 2011-01-17T09:44:04Z Indexed on 2011/01/17 9:53 UTC
Read the original article Hit count: 225

Filed under:

I performed some modifications on a branch (A).

I then decided to create a brand new branch (B) based on the state of my existing working copy and commit and push to that.

There were a number of files that had been moved during my earlier refactoring, and hence were now not included in version control having been moved directly in the filesystem. By accident I did not add these files to git before committing and pushing to the new branch (B).

If I now add these files and commit and push, will Git be able to detect the file move operations?

© Stack Overflow or respective owner

Related posts about git