Simple git workflow with hack and ship
1–10 of 10 posts
Re: Simple git workflow with hack and ship
#2Re: Simple git workflow with hack and ship
#3Uh, his hack script is just "git pull --rebase". This is even the default when a fast-forward is safe.
Meanwhile, has `git pull` had a `--rebase` since the dawn of Git time in 2005, or did it appear at one point?
Re: Simple git workflow with hack and ship
#4Re: Simple git workflow with hack and ship
#5#!/bin/bash
git commit -a -m "$*"
Re: Simple git workflow with hack and ship
#6Uh, his hack script is just "git pull --rebase". This is even the default when a fast-forward is safe.
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?
Re: Simple git workflow with hack and ship
#7Re: Simple git workflow with hack and ship
#8The " || exit 1" is unnecessary. Just use "set -e" at the top of the script once .
http://www.davidpashley.com/articles/writing-robust-shell-sc...
Re: Simple git workflow with hack and ship
#9Uh, his hack script is just "git pull --rebase". This is even the default when a fast-forward is safe.
Re: Simple git workflow with hack and ship
#10The " || exit 1" is unnecessary. Just use "set -e" at the top of the script once .
Looking for more about this, I found a pretty good post: 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, &&.