Git Alias

作者: 隐藏的下一行 | 来源:发表于2019-11-04 12:20 被阅读0次
[alias]
    a = add
    aa = add --all
    b = branch
    bD = branch -D
    ba = branch -a
    bd = branch -d
    br = branch --remote
    cam = commit -a -m
    cb = checkout -b
    ci = commit
    cim = commit -m
    co = checkout
    cp = cherry-pick
    cpa = cherry-pick --abort
    cpc = cherry-pick --continue
    cps = cherry-pick --skip
    d = diff
    f = fetch
    lg = log --stat
    lgg = log --graph
    lgga = log --graph --decorate --all
    lgm = log --graph --max-count=10
    lgp = log --stat -p
    lo = log --oneline --decorate
    lod = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'
    lods = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset --date=short'
    log = log --oneline --decorate --graph
    loga = log --oneline --decorate --graph --all
    lol = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
    lola = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --all'
    lols = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --stat'
    m = merge
    ma = merge --abort
    pd = push --dry-run
    ps = push
    r = remote
    ra = remote add
    rb = rebase
    rba = rebase --abort
    rbc = rebase --continue
    rbs = rebase --skip
    rsh = reset --hard
    rv = remote -vv
    st = status

参考大佬的文章:https://www.jianshu.com/p/cf156db0db25

相关文章

网友评论

      本文标题:Git Alias

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