Create Git Patch From Commits

This is another of those excruciatingly easy tasks that isn’t well documented. git format-patch sha1..sha2 Where sha1 is the older commit and sha2 is the newer commit. This will create patches for each modified file between those commits.

November 19, 2009 · 1 min · 38 words · Brandon Harris

Git a remote branch

Git has it’s own work flow apart from other change management software. Branching is particularly easy, but slightly different than what one is used to. Typically, we create local branches in git to test out new ideas. Occasionally, these new ideas are good enough to share with other developers and suddenly we want a remote version of that remote branch. We have already done this: git checkout -b my_new_awesome_branch We want to do this: ...

April 14, 2009 · 1 min · 171 words · Brandon Harris