Re:Git Tips for Beginners Interested in Open Source
by markberger on Monday September 09, 2013 @09:49AM
(#6353399)
Thanks for the comments Richard. Since Github uses origin as user's fork of the project, I was trying to distinguish the project's main repository and the user's fork. Admittedly, after seeing comments from other people, trunk probably isn't the best name for it.
[ Parent
| on HN ]
Re:Git Tips for Beginners Interested in Open Source
by lambda on Monday September 09, 2013 @11:29AM
(#6354031)
My convention is usually to clone from the upstream project, thus it winds up being "origin", and then adding my own repository as another remote, named after my username. If there are any other users whose repositories I'm following, I add theirs as other remotes named after their usernames as well, remaining consistent.
That way, when I pull from origin, I'm pulling from whatever the official origin repository is; when I pull from another named repo, it's named after whose repo it is.
It's also frequently the case that I've cloned from upstream before ever forking the repo on GitHub. It's only once I have any changes I need to make that I create a fork and add my own remote.
Re:Git Tips for Beginners Interested in Open Source
by js2 on Monday September 09, 2013 @02:55PM
(#6355406)
This is an excellent workflow and then one I use as well.
Re:Git Tips for Beginners Interested in Open Source
by steveklabnik on Monday September 09, 2013 @10:35AM
(#6353673)
I use 'upstream' for this purpose.