Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



This is an excellent workflow and then one I use as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: