aerijman
aerijman

Reputation: 2782

How do I do git status upstream?

In my forked repository I have set up a remote origin and remote upstream (the original repo).

git status compare to origin.
How do I compare to upstream?

Thank you

Upvotes: 6

Views: 719

Answers (1)

VonC
VonC

Reputation: 1329572

For git status to compare the current branch to a different remote, you would need to set that remote for said branch

git config branch.<mybranch>.remote upstream

Then try git status again (possibly after a git remote update).

See more at "Select remote on Git status".

Upvotes: 4

Related Questions