How do I do git status upstream?

Viewed 268

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

1 Answers

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".

Related