And the difference between git rm rm of

Copyright: https://blog.csdn.net/Dongguabai/article/details/89422607

We have to go from the principle of the analysis did not need this stuff, generally know how to operate on the line.
 

RM using git :

submit:


go back:

Direct use rm:

submit:

go back:

Simply put, it directly rm, fallback when direct checkout on the line, but commit the time required to add; use git rm, rolled back when the need reset HEAD, then checkout, when submitted directly commit on the line.

git rm will delete this file while the deleted files into the staging area. The rm just delete this file, then this file is not in the staging area.

Guess you like

Origin blog.csdn.net/Dongguabai/article/details/89422607