My git workflow includes the hack and ship commands for easy tracking of a shared
master branch, and conveniently delivering commits. Feature branches are cheap and fast in git, and I am often spawning new branches to try stuff out or work on unrelated things.
chop - for chopping down the current working branch after it has been shipped and is no longer needed. The script changes the current branch to
master, and then deletes the branch you was previously on. If you give a branch-name as an argument that will be the new current branch.
I use this small script is multiple times every day, and I really like the name of it. There is not a whole lot of functionlity, but as this is an often repeated action, it makes sense to automate it.
Hi, I'm Laust Rud Jacobsen, an experienced webapp developer specializing in Ruby-based solutions. You can hire me to build awesome stuff for you. If you have any questions or comments, reach out at @laustrud or privately at firstname.lastname@example.org.
A current and exciting development: I'm in the process of writing
Effective Maintenance: taming messy code (Ruby edition).
Sign up below to receive infrequent updates and valuable insights to help you succeed: