Skip to content

Instantly share code, notes, and snippets.

@nlacourte
Last active August 29, 2015 13:58
Show Gist options
  • Save nlacourte/9978898 to your computer and use it in GitHub Desktop.
Save nlacourte/9978898 to your computer and use it in GitHub Desktop.
Yet another gIt config with alias
[user]
name =
email =
[color]
branch = auto
diff = auto
status = auto
interactive = auto
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit --all
st = status
ci = commit
br = branch
brr = branch -r
co = checkout
ft = fetch --tags
pt = push --tags
lpush = "!git log origin/$(git currentbranch)..HEAD"
lpull = "!git log HEAD..origin/$(git currentbranch)"
whatsnew = "!git diff origin/$(git currentbranch)...HEAD"
whatscoming = "!git diff HEAD...origin/$(git currentbranch)"
currentbranch = "!git branch | grep \"^\\*\" | cut -d \" \" -f 2"
cam = commit -a -m
w = whatchanged
[push]
default = simple
[branch]
autosetuprebase = always
autosetupmerge = false
[log]
decorate = short
[status]
showUntrackedFiles = all
[help]
format = web
[fetch]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment