git 常用命令简写

来源:互联网 发布:斧子主机 知乎 编辑:程序博客网 时间:2024/06/07 02:03

cd切换到根目录

[alias]
    st = status
    ci = commit
    br = branch
    co = checkout
    df = diff
    last = log -1
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    lg2 = log -n 200 --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    ps = push
    pl = pull
    cp = cherry-pick