-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
hub remote add
should offer an option to set the remote name manually
#1271
Comments
hub remote add
should offer an option to set the name manuallyhub remote add
should offer an option to set the remote name manually
How about treating the name "upstream" specially, so simply There was a number of feature requests for better remote naming re: "origin" vs "upstream": #798 #811 #762. I'm starting to be convinced that Decisions, decisions… Which of these options would you prefer? |
Well, purely selfishly I very much like the idea that I don't think that Possible answers:
If I was implementing it myself, I'd probably go for 3), possibly implementing a non-default option for 1) and 2) somewhere down the line. |
It's an interesting question about fork of a fork. I would just go for 2) and do immediate parent. These cases will probably be rare anyway, so if the person really wanted top-level parent instead, they can easily change that manually. |
Yeah, that's true. Works for me. |
+1 for 2) - if you wanted to fork the upstream one, you would fork that one (and then add the child as a remote |
Automatically adding an |
One common pattern I follow is to fork a project's repository, clone it under my own name (or "origin") and then add a remote called "upstream" for the original repository.
This is useful, because I can then use exactly the same command in any of my projects to rebase or merge from the original project (
git rebase upstream/master
orgit merge upstream/master
) and not have to vary the remote name for each checkout.Could you add a
-n NAME
parameter tohub remote add
so that it would be easy to do this?The text was updated successfully, but these errors were encountered: