Your Branch is ahead of ' Origin/master ' by 1 commit

Source: Internet
Author: User

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)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.