Skip to content

Instantly share code, notes, and snippets.

@tautologistics
Created December 3, 2013 18:43
Show Gist options
  • Save tautologistics/7775093 to your computer and use it in GitHub Desktop.
Save tautologistics/7775093 to your computer and use it in GitHub Desktop.
Personal gitconfig
[user]
name = Xxx Xxx
email = xxx@xxx.xxx
[gui]
recentrepo = ~/some/repo
[color]
ui = auto
branch = auto
diff = auto
interactive = auto
status = auto
[core]
autocrlf = input
editor = nano
excludesfile = ~/.gitignore_global
[alias]
lp = log --pretty=oneline --abbrev-commit --graph --decorate
s = status -u -s
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgf = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --name-status
prestaged = diff --cached
staged = diff origin/master master
madd = add -u
squash = rebase -i HEAD~2
unstage = reset HEAD --
nevermind = checkout -- .
unstash = stash pop
rpull = pull --rebase
rp = pull --rebase
co = checkout
b = branch
c = commit
p = push
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[branch]
autosetupmerge = false
[push]
default = matching
[credential]
helper = osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment