Skip to content

Instantly share code, notes, and snippets.

@kcollasarundell
Last active December 12, 2015 09:29
Show Gist options
  • Save kcollasarundell/4752116 to your computer and use it in GitHub Desktop.
Save kcollasarundell/4752116 to your computer and use it in GitHub Desktop.
Git configuration. The gitlocal file is created so that you can differentiate between work and personal while still running the same .gitconfig everywhere
[include]
path = .gitlocal
[alias]
lol = log --graph --decorate --pretty --oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
hlog = log --pretty=format:'The author of %h was %an, %ar%nThe title was >>%s<<%n'
unstage = reset HEAD --
tree = log --graph --oneline --pretty=oneline --all
treeall = log --oneline --decorate --all --decorate --graph
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative
ll = log --stat --abbrev-commit
[core]
editor = vim
excludesfile = ~/.gitignore
[color]
diff = auto
status = auto
branch = auto
[push]
default = upstream
[diff]
tool = meld
algorithm = histogram
[remote "origin"]
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
.*.sw[a-z]
*.un~
Session.vim
[user]
name = Your name here
email = Your email here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment