假設我在我的git倉庫中有一個名爲foo的文件。 假設它已被刪除rm(而不是git rm)。然後git狀態將顯示: Changes not staged for commit:
deleted: foo
如何處理此單個文件刪除? 如果我嘗試: git add foo
它說: 'foo' did not match any files.
想我已經上演了一些變化: $ git diff --cached # few changes are stashed
+ change 1 new
blabla
- change 2 old
+ change 2 new
blabla
- change 3 old
+ change 3 new
blabla
$ git diff # no other