29 points · by Superfud · 15y ago · 8 comments
Meanwhile, has `git pull` had a `--rebase` since the dawn of Git time in 2005, or did it appear at one point?
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, &&.
#!/bin/bash
git commit -a -m "$*"