Skip to content

Instantly share code, notes, and snippets.

@Seldaek Seldaek/gitconfig
Created Mar 27, 2012

Embed
What would you like to do?
Git config aliases
[alias]
co = checkout
ci = commit
st = status
br = branch
rb = rebase
fu = !git fetch upstream
fo = !git fetch origin
p = push
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
fro = !git fetch origin && git rebase origin/master
fru = !git fetch upstream && git rebase upstream/master
stup = !git stash && git fro && git stash pop
rom = !git rebase origin/master
rum = !git rebase upstream/master
romi = !git rebase origin/master -i
rumi = !git rebase upstream/master -i
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[push]
default = current
@greut

This comment has been minimized.

Copy link

greut commented Mar 27, 2012

nice, the ones I've got and uses all the time:

    lol = log --graph --decorate --pretty=oneline --abbrev-commit
    lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
@pminnieur

This comment has been minimized.

Copy link

pminnieur commented Mar 27, 2012

ps: you could simplify the whole [color] block with ui = true

@Seldaek

This comment has been minimized.

Copy link
Owner Author

Seldaek commented Mar 28, 2012

@pminnieur: thanks
@greut: Yup that's relatively similar to my lg except for various colors it seems.

@greut

This comment has been minimized.

Copy link

greut commented Mar 28, 2012

Mostly the oneline stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.