Last active
September 27, 2015 22:07
-
-
Save todesking/1339445 to your computer and use it in GitHub Desktop.
my git command alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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