git shortcuts

git config --global alias.d1 "diff"

 

~/.gitconfig 

[core]

        autocrlf = input

[color]

        diff=auto

        ui = auto

        branch=auto

[alias]

        ci = commit

        co = checkout

        st = status

        df = diff

        dc = diff --cached

        dh = diff HEAD

        br = branch

        cm = commit -m

        logf = log --pretty=format:'%h %s'

        hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short

        type = cat-file -t

        dump = cat-file -p

[merge]

        tool = kdiff3

猜你喜欢

转载自feuyeux.iteye.com/blog/1976476
今日推荐