Last active
September 14, 2015 07:12
-
-
Save blueberrystream/5fe0d0c1df677106dce6 to your computer and use it in GitHub Desktop.
わたしのgitのエイリアス 2015/09/14版
This file contains 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
$ git alias | |
alias => !git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\ => \2/' | sort | |
au => update-index --assume-unchanged | |
bc => checkout -b | |
br => branch | |
ci => commit | |
co => checkout | |
contains => branch -r --contains | |
dc => diff --cached | |
di => diff --word-diff | |
f => fetch --prune | |
fetch-pulls => fetch origin +refs/pull/*:refs/remotes/pull/* | |
fpr => fetch origin +refs/pull/*:refs/remotes/pull/* | |
fu => fetch --prune upstream | |
gen-ignore => !f() { local s=$1; shift; while [ $# -gt 0 ]; do s=$s,$1; shift; done; curl http://gitignore.io/api/$s; }; f | |
hist => log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short | |
info => remote show origin | |
l => log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
last => log -1 HEAD | |
lg => log --graph | |
mt => mergetool | |
nau => update-index --no-assume-unchanged | |
noau => update-index --no-assume-unchanged | |
nosw => update-index --no-skip-worktree | |
nsw => update-index --no-skip-worktree | |
pt => push --tags | |
pull-dry-run => !git fetch origin; B=$(git rev-parse --abbrev-ref HEAD); git diff --stat --summary ${B}..origin/${B} | |
s => status --short --branch | |
sco => !git checkout $(git branch | peco) | |
sh => show | |
showuser => config --get-regexp ^user | |
sm => submodule | |
st => status | |
su => submodule update | |
sw => update-index --skip-worktree | |
vau => !git ls-files -v | grep ^[a-z] | |
vsw => !git ls-files -v | grep ^[Ss] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment