top | item 2059722

Simple git workflow with hack and ship

29 points| Superfud | 15 years ago |object.io

Branches are virtually free with git, it makes a lot of sense to create short-lived feature-branches for each new thing you start working on. This does mean a bit of shuffling back and forth to integrate changes from others in your local work, but this “pull changes and rebase my work” workflow can be greatly eased by these small scripts.

8 comments

order

jrockway|15 years ago

Uh, his hack script is just "git pull --rebase". This is even the default when a fast-forward is safe.

saurik|15 years ago

You can even make it always the default by setting branch.<name>.rebase to true, and can make /that/ the default by setting branch.autosetuprebase to always ;P.

mechanical_fish|15 years ago

What about "ship"?

Meanwhile, has `git pull` had a `--rebase` since the dawn of Git time in 2005, or did it appear at one point?

DanielRibeiro|15 years ago

This workflow would probably also benefit from a gitc script, for fast committing:

#!/bin/bash

git commit -a -m "$*"