git alias

2018-03-17  本文已影响16人  尧月
[alias]  
    st = status  
    ci = commit  
    br = branch  
    co = checkout
    dfa = !git diff $1 && git rev-parse --abbrev-ref --symbolic-full-name @{u}  
    df = diff
    df1 = diff HEAD HEAD^
    df2 = diff HEAD^ HEAD^^  
    cp=cherry-pick
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

上一篇下一篇

猜你喜欢

热点阅读