If you are only modifying locally and have not commit, then use git status to print the information as:
# on Branch Master
# Changes not staged for commit:
# (use "Git add <file> ..." To update what'll be committed)
# (use "Git checkout-<file> ..." to discard changes in working directory)
#
# modified:conf/gitolite.conf
#
No changes added to commit (use "git add" and/or "Git Commit-a")
After the commit, use git status to print the information as:
# on Branch Master
# Your Branch is ahead's ' Origin/master ' by 1 commit.
#
Nothing to commit (working directory clean)
Indicates that no files require a commit, but the local repository has a commit ahead the original master, which is that the local repository has a commit that is more advanced than a remote warehouse. After GIT push Origin master, and then use Git staus, print the information as:
# on Branch Master
Nothing to commit (working directory clean)