Skip to content

Instantly share code, notes, and snippets.

@todesking
Last active September 27, 2015 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todesking/1339445 to your computer and use it in GitHub Desktop.
Save todesking/1339445 to your computer and use it in GitHub Desktop.
my git command alias
[alias]
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
a = add
a-i = add -i
a-p = add -p
co = checkout
b = branch
k = !gitk --all --max-count=200 &
s = status -sb
ci = commit
cia = commit -a
civ = commit -v
ciav = commit -av
ci-am = commit --amend
d = diff
dc = diff --cached
dis = diff --ignore-space-change
dcis = diff --cached --ignore-space-change
r-i = rebase -i
r-c = rebase --continue
r-a = rebase --abort
dh- = diff HEAD~
dw = diff --color-words --word-diff-regex='\\w+|[-a-zA-Z0-9_]+'
s-l = stash list
s-s = stash save
graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
g = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
l-p = log -p
l-s = log --stat
sr = svn rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment