I usually does the following with
$ mv file1.py file2.py
$ git add .
$ git rm file1.py
How can I skip the last step? So that whenever I add the newly name
files it will automatically remove the old one file1.py
in the git repository.
I know I can do git mv file1.py file2.py
. But in my workflow I tend to do many mv
commands and prefer to add and commit them at the very end.