News for hackers. Stuff that matters.
Re:How to contribute to an open source project on GitHub by brobinson on Saturday November 05, 2016 @02:27PM (#12881111)
I dislike the idea of using 'origin' for my own remote name.

I keep 'origin' as the canonical remote and my local master branch tracks origin/master. I use people's usernames for their remotes (including for my own).

If I'm pushing a feature branch to my own remote:

    git push -u myusername mybranchname
If I need to checkout someone's PR, it's:

    git remote add theirusername [email protected]:theirusername/repo.git
    git fetch theirusername
    git checkout -t theirusername/repo
I've seen people at work who are new to git/Github struggle a lot with the 'origin'/'upstream' differentiation recently, especially when they're learning branching, and they don't seem to have any problems once I switch them over to using 'origin' + usernames.
Re:How to contribute to an open source project on GitHub by rcfox on Sunday November 06, 2016 @08:06AM (#12884896)
FYI: GitHub will create a branch in your repo for pull requests. You shouldn't need to pull directly from someone else's repo just to look at their pull request.

http://stackoverflow.com/a/30584951

Re:How to contribute to an open source project on GitHub by brobinson on Sunday November 06, 2016 @04:38PM (#12887192)
Didn't know you could pull by ID! Thanks!
Re:How to contribute to an open source project on GitHub by brobinson on Saturday November 05, 2016 @06:48PM (#12882337)
Too late to edit, but that should be:

    git checkout -t theirusername/theirbranchname
Re:How to contribute to an open source project on GitHub by cynicaldevil on Saturday November 05, 2016 @03:22PM (#12881405)
Same here. Except I use 'myfork' as the name for my remote repo. Origin/upstream always got me confused when I first started learning Git, so I created my own naming conventions.
Re:How to contribute to an open source project on GitHub by dom0 on Saturday November 05, 2016 @02:38PM (#12881191)
> If I'm pushing a feature branch to my own remote:

I grew so tired of that that I just wrote a little wrapper script, that just does the right thing (tm). So it's

    $ shit push
for me.