Skip to content

Instantly share code, notes, and snippets.

@Seldaek
Created March 27, 2012 08:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Seldaek/2214038 to your computer and use it in GitHub Desktop.
Save Seldaek/2214038 to your computer and use it in GitHub Desktop.
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
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

@immutef
Copy link

immutef commented Mar 27, 2012

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

@Seldaek
Copy link
Author

Seldaek commented Mar 28, 2012

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

@greut
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