This topic created in 4494 days ago, the information mentioned may be changed or developed.
之前删除了几个vim的缓存文件,现在通过git status可以看到这几个文件名的记录,每次git add . -> git push后这些记录还在,请问怎么才能将它们从git status中去掉呢
3 replies • 2014-07-28 09:09:13 +08:00
 |
|
git rm ***
|
 |
|
使用 git rm 再删一次, git add . 后 git commit 提交 直接 git commit -am "delete files" 提交 使用 git add -all , 然后 git commit 提交
以上三种都可以。
|
 |
|
lz 要的是 `git rm --cached path/to/filename` ?
|