我試圖解析命令git status --porcelain
的輸出。 正如SO answer所述。Git瓷器選項沒有顯示任何東西?
的問題是,在CLI中測試這個時候我沒有得到任何輸出:
git status
output:
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
而且隨着--porcelain
git status --porcelain
output:
(nothing :)
有人能請解釋一下這是怎麼回事?