I'm trying to parse the output from the command git status --porcelain
.
As stated in this SO answer.
The problem is that I'm not getting any output when testing this in the 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
And with --porcelain
git status --porcelain
output:
(nothing :)
Can someone please explain what's going on?