TOP

いつも使ってるGitのAliasのメモ

2016-07-15 13:50:36

とりあえずのメモ

$ cat ~/.gitconfig

[alias]
    pull-dry-run  = !"git fetch origin; B=$(git rev-parse --abbrev-ref HEAD); git diff --stat --summary ${B}..origin/${B}"
    nevermind = !git reset --hard HEAD && git clean -d -f
    precommit = diff --cached --diff-algorithm=minimal -w
    pl = pull
    ps = push
    co = checkout
    br = branch
    tg = tag