Skip to content

Instantly share code, notes, and snippets.

@hadongsoo
Created May 2, 2016 06:57
Show Gist options
  • Save hadongsoo/2d575ae807e1c464fa86e8aead32ec74 to your computer and use it in GitHub Desktop.
Save hadongsoo/2d575ae807e1c464fa86e8aead32ec74 to your computer and use it in GitHub Desktop.
a => !git add . && git status
aa => !git add . && git add -u . && git status
ac => !git add . && git commit
acm => !git add . && git commit -m
alias => !git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort
au => !git add -u . && git status
c => commit
ca => commit --amend
cm => commit -m
d => diff
fl => log -u
l => log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
lg => log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg => log --graph --format=format:'%C(ul cyan)%h%C(reset) |%C(auto)%d%C(reset) %C(white)%ai%C(reset) (%ar)%n'' %C(white)%s%C(reset) %C(bold black)- %an%C(reset)' --all
ll => log --pretty=format:%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --numstat
ll => log --stat --abbrev-commit
llg => log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit
logg => git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lrd => log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
lrd => log --pretty=format:%C(yellow)%h\ %ad%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --date=relative
master => checkout master
s => status
spull => svn rebase
spush => svn dcommit
tree => log --graph --oneline --decorate --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment