git alias

作者: 尧月 | 来源:发表于2018-03-17 17:35 被阅读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

相关文章

网友评论

      本文标题:git alias

      本文链接:https://www.haomeiwen.com/subject/ncbjqftx.html