Skip to content

Instantly share code, notes, and snippets.

@omaciel
Last active August 29, 2015 14:05
Show Gist options
  • Save omaciel/8c8a9a3ded6754b5ea2b to your computer and use it in GitHub Desktop.
Save omaciel/8c8a9a3ded6754b5ea2b to your computer and use it in GitHub Desktop.
My personal .gitconfig
[user]
name = Og B. Maciel
email = <email goes here>
[color]
ui = true
status = auto
diff = auto
branch = auto
interactive = auto
[url "ssh://[email protected]/git/"]
insteadof = gnome:
[url "[email protected]:omaciel/"]
insteadof = bb:
[url "[email protected]:omaciel/"]
insteadof = gh:
[alias]
up = pull --rebase
ci = commit
st = status -sb
co = checkout
br = branch
df = diff
dfw = diff --word-diff
fup = log --since '1 day ago' --oneline --author <email goes here>
timeline = log --graph --branches --pretty=oneline --decorate
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[log]
decorate = short
[core]
autocrlf = input
whitespace = trailing-space,space-before-tab
pager = less -r
excludesfile = ~/.gitignore
[push]
default = matching
[apply]
whitespace = fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment