Hey just wanted to put a quick note to anyone interested in the talk I gave on git last night:
However if you liked the save or amend commands those are even easier to add!
Simply modify your global .gitconfig (usually in your home directory by default) and add anything you like:
... other settings ...
[user]
name = Adam
email = adamtaylor0795@gmail.com
[core]
autocrlf = false
# pager = diff-so-fancy | less --tabs=4 -RFX
trustctime = false
[pull]
rebase = true
[merge]
conflictstyle = diff3
[color "branch"]
upstream = green bold
[alias]
rbc = rebase --continue
ec = config --global -e
save = !git add -A && git commit -m 'SAVEPOINT'
amend = commit -a --amend --no-edit
undo = reset HEAD~1 --mixed
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -n 1 git branch -d; }; f"
pull-force = "!bash -c 'f() { git fetch origin && git reset --hard origin/`getBranch`; }; f'"
reuse-msg = commit -C HEAD@{1}
Particularly reuse-msg is nice if you need to undo a commit (for whatever reason) but then you would like to simply reuse the commit message without re-typing it.