Skip to content

Instantly share code, notes, and snippets.

@solarce
Created November 15, 2016 22:05
Show Gist options
  • Save solarce/9c1e336290275bea4643ff5af7bc4704 to your computer and use it in GitHub Desktop.
Save solarce/9c1e336290275bea4643ff5af7bc4704 to your computer and use it in GitHub Desktop.
[alias]
branch-name = "!git rev-parse --abbrev-ref HEAD"
co = checkout
cm = "checkout master"
+ cgh = "checkout gh-pages"
cb = checkout -b
st = status
br = branch
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgp = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -p
a = add
cia = commit -a
ci = commit
c = commit
pu = push
pub = "!git push -u origin $(git branch-name)"
pl = pull
cl = clone
pf = pull --ff-only
pt = push --tags
d = diff
ds = diff --staged
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment