Everything is in the title...
I read this question: Viewing Unpushed Git Commits
But I don't understand why git status
displays all unpushed commits in the master branch, but does not display anything in other branches.
Can someone explain it?
EDIT
Here is what commands and outputs I did/get:
aurelien@server:/home/repo/$ git branch
new_feature
* master
aurelien@server:/home/repo/$ git checkout new_feature
Switched to branch 'new_feature'
aurelien@server:/home/repo/$ echo test > newfile.txt
aurelien@server:/home/repo/$ git add newfile.txt
aurelien@server:/home/repo/$ git commit -m "Test commit"
[new_feature 51c6a64] Test commit
1 file added
aurelien@server:/home/repo/$ git status
# On branch new_feature
nothing added to commit
Why doesn't my commit appear when using git status
?