Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (36 sloc) 1.373 kB
email =
name = Dave Hulbert
#editor = nano
diff = auto
status = auto
branch = auto
st = status
ci = commit
br = branch
co = checkout
df = diff
d = diff --color-words
# different logs
lg = log -p --decorate
l = "! git --no-pager log --oneline --graph -n 18 --decorate"
ll = "log --oneline --graph --decorate --branches"
# get the 1st changed file
f = "! git status --porcelain| awk '{ print $2 }' | head -n 1"
# overview of the whole project's history, tags, branches, with dates
overview = log --graph --simplify-by-decoration --decorate --pretty=format:'%cd%Cgreen%d %Cblue%h %Creset%s' --date=short
# allows you to use "git add -i" or "git add -p" with new files
stage-empty-file = "! git update-index --add --cacheinfo 100644 $(git hash-object -w /dev/null) "
# top level of repo
top=rev-parse --show-toplevel
# copy all generic hooks to this repos hook folder
setup-hooks="! cp -n ~/scripts/git-hooks/* $(git rev-parse --show-toplevel)/.git/hooks/"
autosetupmerge = always
default = tracking
stat = true
Jump to Line
Something went wrong with that request. Please try again.