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

Added git-upstream to easily add upstream repository #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jvtrigueros
Copy link

I thought that this shortcut might be useful to add to the list of extras. It is not very fancy, but it is something that I find myself doing every time I fork a repository.

Usage:

$ git upstream git://github.com/visionmedia/git-extras.git

- Completed the script, now I gotta make the man page

- Fixed prompt

- Completed markdown help file

- Adding compiled documentation

- Updated Readme.md to include git upstream
@espinielli
Copy link

I second it.
(but are pull requests noticed? this is quite from some time ago...)

@jvtrigueros
Copy link
Author

Yeah, that's what it feels like. I think maybe git-extras is already set and they wont add any more features?

@chernjie
Copy link
Contributor

This seems to be duplicating git branch --set-upstream-to=<url>, correct me if I am wrong. If it is then this "extras" would be redundant.

I was hoping for a git upstream feature that would show you which branch the current branch is tracking. e.g. http://stackoverflow.com/questions/171550/find-out-which-remote-branch-a-local-branch-is-tracking

Example usage:

(master)$ git upstream
origin/master
(master)$ git upstream feature
origin/feature

@jvtrigueros
Copy link
Author

You bring a good point @chernjie, I'll make sure I don't duplicate functionality and if so, will try to implement what you suggested. Seems like that is a needed feature :octocat:

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.

3 participants