不同的,當我嘗試使用git rm --cached
我收到以下錯誤:文件分段內容從頭部
error: the following file has staged content different from both the file and the HEAD:
我知道,我可以git rm --cached -f <filename>
繞過這個錯誤。但通常當我用git rm --cached
取消文件時,我不會收到此錯誤。
我的問題是這是什麼意思,該文件具有HEAD
不同的分段內容。
這意味着文件已經改變,轉移到舞臺狀態,現在它的內容與HEAD版本不同。 – MaxZoom