Git mv

 

MOVE OR RENAME A FILE

git mv myfile newfilename

 

 

VIEWING THE HISTORY

After renaming/moving the file, git only show the history from the point where it was renamed and forward.

git log newfilename

To view the full history use

git log --follow newfilename

 

Cookbook Category: 
Git