Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git internal"s @{upstream} reference to notice unmerged commits to a remote #1003

Closed
wants to merge 1 commit into from

Conversation

prathe
Copy link

@prathe prathe commented Mar 8, 2012

We could try to guess the tracked remote branch by hardcoding the remote to origin and using the current branch name as the remote branch. This can work most of the time, but it is not robust. What if you set your master branch to push to another remote? This happens when I play with two or more forks on Github, I set the origin to the original repo I cloned from first and then fork thereafter.

I think using git internal reference to @{upstream} should be bullet proof for any kind of possible configuration you may have. And it is quite clean. Unknown but clean.

What do you think?

@robbyrussell
Copy link
Member

Closing this per #2568.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants