Last active
August 21, 2016 03:28
-
-
Save huangblue/11521e0ae34347456b6b5de2e72ed692 to your computer and use it in GitHub Desktop.
git rm命令的认识
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
它是要从物理上删除文件 | |
如果不想删除,只想不被跟踪,加参数--cached | |
例如: git rm --cached README | |
最后是文件名。 | |
这样,就把文件从监视目录去掉。 | |
以后再用命令 git rm是不可以删除它的。 | |
这说明,git rm只针对进入数据库系统中的 | |
可以物理上存在的文件理解为两部分:一部分是被监视的,一部分是不被监视的。 | |
可以通过git add把不被监视的加入进到被监视的部分。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment