Simple git workflow with hack and ship (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.
9 comments
[ 4.6 ms ] story [ 35.7 ms ] threadMeanwhile, has `git pull` had a `--rebase` since the dawn of Git time in 2005, or did it appear at one point?
#!/bin/bash
git commit -a -m "$*"
http://www.davidpashley.com/articles/writing-robust-shell-sc...
The best way is to write the compound commands and any sub-shell commands so that they will exit with the return status of any command that failed, using, say, &&.