Skip to content

The output of 'git status' is out-of-date #554

@YueLinHo

Description

@YueLinHo

book\02-git-basics\sections\recording-changes.asc line 32

Finally, the command tells you which branch you're on 
and informs you that it has not diverged from the same branch on the server.

Pro Git v2 added informs you that it has not diverged from the same branch on the server and it was in first "file added" commit. Say 322437c.

But I don't know how git status tell me that:

$ git status
On branch master
nothing to commit, working directory clean

There is no server information!

I figured it out after testing it on git 2.7.0.windows.1

The git status said:

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

There is one more line Your branch is up-to-date with 'origin/master'. which is not in book.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions