Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Created July 4, 2016 08:18
Show Gist options
  • Save karl-gustav/af74d49758bf79723f8526da565fe95d to your computer and use it in GitHub Desktop.
Save karl-gustav/af74d49758bf79723f8526da565fe95d to your computer and use it in GitHub Desktop.
.gitconfig backup
[user]
name =
email =
[alias]
br = branch
st = status
co = checkout
ci = commit
pr = pull --rebase
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
rc = rebase --continue
cp = cherry-pick
ra = rebase --abort
ae = commit --amend --no-edit
poop = stash pop
list-remote-branches = for-each-ref --sort=-committerdate refs/remotes/ --format='%(committerdate:short) - %(refname:short) %09 - %(subject)'
pa = pull --abort
standup = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --since=\"yesterday\" --branches
save = !git add -A && git commit -m \"SAVEPOINT\"
[diff]
tool = kdiff3
compactionHeuristic = true
[merge]
tool = kdiff3
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[difftool]
prompt = false
[push]
default = simple
[core]
excludesfile = /Users/kgr/.gitignore
editor = /usr/bin/vim
editor = vim
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment