Rename or Move files in GIT

Aram Koukia
Koukia
Published in
4 min readNov 13, 2018

--

Git keeps track of changes to files in the working directory of a repository by their name. When you move or rename a file, Git doesn’t see that a file was moved; it sees that there’s a file with a new filename, and the file with the old filename was deleted (even if the contents remain the same).

As a result, renaming or moving a file in Git is essentially the same operation; both tell Git to look for an existing…

--

--

Software Engineer, Engineering Leader and Manager @ AWS. Living my dream life. http://koukia.ca/