Git alias

Git alias列表


[alias] recom = commit --amend diffh = diff HEAD diffhh = diff HEAD^ cbran = rev-parse --abbrev-ref HEAD cancel = reset --soft HEAD^ cpush = !git push origin `git cbran` cpull = !git pull origin `git cbran` fpull = !git fetch origin `git cbran` && git reset --hard origin/`git cbran` slog = log --pretty=format:'%C(yellow)[%ad] %C(green)%h %Creset: %s' --date=iso delete-brans = !git branch --merged | grep -v \\* | grep -v 'master\\|release' | xargs -I % git branch -d %

Continue reading