git status清空_本地删除文件后,git status会显示红色的那个文件。
知道了,感謝大家:
正確答案應該是:
$ git rm -r '倒計時'
rm '倒計時/js/countDown.js'
rm '倒計時/倒計時整理.html'
Warning: Your console font probably doesn't support Unicode. If you experience s
trange characters in the output, consider switching to a TrueType font such as L
ucida Console!
Administrator@MEMGXIAN-D2855A /C/Documents and Settings/project/countDown (maste
r)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD ..." to unstage)
deleted: "\345\200\222\350\256\241\346\227\266/js/countDown.js"
deleted: "\345\200\222\350\256\241\346\227\266/\345\200\222\350\256\2
41\346\227\266\346\225\264\347\220\206.html"
Administrator@MEMGXIAN-D2855A /C/Documents and Settings/project/countDown (maste
r)
Administrator@MEMGXIAN-D2855A /C/Documents and Settings/project/countDown (maste
r)
$ git commit -m 'delete'
[master ddac828] delete
2 files changed, 83 deletions(-)
delete mode 100644 "\345\200\222\350\256\241\346\227\266/js/countDown.js"
delete mode 100644 "\345\200\222\350\256\241\346\227\266/\345\200\222\350\256\2
41\346\227\266\346\225\264\347\220\206.html"
Administrator@MEMGXIAN-D2855A /C/Documents and Settings/project/countDown (maste
r)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
總結
以上是生活随笔為你收集整理的git status清空_本地删除文件后,git status会显示红色的那个文件。的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 管理动物园动物c++_《过山车大亨》开发
- 下一篇: python列表生成式内必须定义匿名函数