Care and keeping of pull requests

28 Jun 2015

What is this?

This is a series of posts on managing pull requests. It is not an introduction to git, or a rundown of GitHub’s features. It is purely a walkthrough of common (I hope!) pull request scenarios, aimed at someone who might know most of the necessary commands already, but not the correct sequence in which to use them.

I’ve wanted to do this for a long time - not because the world NEEDS any more git/GitHub tutorials, but just because I wanted to get all the ideas straight in my head and lay them out in a way that makes sense to me. If just one or two people read + find this useful, it will have more than succeeeded.

Prior knowledge

These posts assume that the reader already knows:

collaboration

Remote naming

When working with remote + local repositories, the convention (as far as I have seen/understand) is for origin to represent the remote that belongs to you (your fork of the main repository) and upstream to represent the remote that is the authoritative main repository (see this in the original version of the above figure). I have not used this convention in what follows; rather, I have used origin always for the authoritative central repository and usernames for other named remotes. This is partially because I use this naming scheme myself; it also seems more clear to me for instructional purposes.

Comments

I haven’t figured out how to get commenting on this blog, so feedback is welcome as an issue or PR on the blog’s Github repository. ;)

Thanks

Huge hat tip to @ahmadia and @wking who held my hand through a lot of my initial adventures in learning about the remote aspects of git. And thanks to @gvwilson and the @swcarpentry community in general, for creating the space and impetus to learn these skills.

how-to » git, collaboration, care and keeping of prs,


Recent Posts

Archive

Categories

Popular Tags

ACT (2) RCF (6) Software Carpentry (6) books (3) care and keeping of prs (6) collaboration (9) computing (13) culture (10) empowerment (6) family (2) gender (2) git (9) hope (2) language (3) lessons (4) math (8) mental health (2) movies (2) personal (5) problem solving (3) programming (9) science (2) self care (3) shell (2) teaching (11) true story (5) tutoring (2) work (12)