Always show working directory clean?

Already has commited,
but nothing to commit (working directory clean)

已經 commited 但是沒有工作紀錄?鬼打牆?

首先 google 查到的可能是兩種狀況

1.你對檔案做新增、編輯,但是 git status 告訴你沒紀錄 (working directory clean)
ref:http://stackoverflow.com/questions/22067873/git-nothing-to-commit-working-directory-clean

2.你對檔案做新增、編輯,且在本地提交過 commit,仍是 (working directory clean)
ref:http://stackoverflow.com/questions/1745464/git-commit-problems

第一種可能原因,先檢查檔案 .gitignore 造成你沒紀錄的主因
第二種可能原因,在 path 或者追蹤遠端分支時出問題,導致無法正常指向遠端分支
可以試試下面的方法

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×