Why use 'git rm' to remove a file instead of 'rm'?

前端 未结 7 1129
不思量自难忘°
不思量自难忘° 2020-12-02 04:39

On SVN, removing something from the filesystem directly (rather than using svn) created a load of headaches.

I haven\'t found this to be an issue when using gi

7条回答
  •  执笔经年
    2020-12-02 05:12

    However, if you do end up using rm instead of git rm. You can skip the git add and directly commit the changes using:

    git commit -a

提交回复
热议问题