Skip to content

Instantly share code, notes, and snippets.

@akheron
Last active September 28, 2015 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akheron/1392958 to your computer and use it in GitHub Desktop.
Save akheron/1392958 to your computer and use it in GitHub Desktop.
My .gitconfig
[alias]
st = status --short --branch
dc = diff --cached -M -B -C
typo = commit --amend
fixup = commit --amend --no-edit
logk = log --graph --pretty=\"format:%C(yellow)%h%C(red)%d%Creset %s %C(green)%an, %ar%Creset\"
ffpull = pull --ff-only
ffmerge = merge --ff-only
ri = "!f() { rev=$(git rev-parse $1 2>/dev/null) || rev=HEAD~$1; git rebase -i $rev; }; f"
rc = rebase --continue
ra = rebase --abort
rs = rebase --skip
whoami = !echo \"$(git config --get user.name) <$(git config --get user.email)>\"
[color]
ui = auto
[push]
default = simple
[rebase]
autosquash = true
[credential]
helper = cache
@akheron
Copy link
Author

akheron commented May 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment