caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 383 forks source link

Can't trust git status when origin is ahead? #195

Closed Tset-Noitamotua closed 7 years ago

Tset-Noitamotua commented 7 years ago

I did some commits from another PC then back on first PC I did git status and expected to be behind origin/master but instead I see a Your branch is up-to-date with 'origin/master'. As you can see from git pull below origin was ahead of my local state.

So can I not trust git status?

image

dawikur commented 7 years ago

Sorry, but how is this related to this project?

The answer to this question is related directly to the philosophy of git - which is distributed version control. git status shows status from your local repository, it does not check origin.

Tset-Noitamotua commented 7 years ago

Learned something again. Thanks ;-)

Tset-Noitamotua commented 7 years ago

On Windows (I use Cmder) git checks local and origin repository:

image

I wonder why it should be different on a Mac?