美文网首页
git config

git config

作者: 箱猫日和 | 来源:发表于2016-07-04 10:48 被阅读37次

git 配置 ,简化指令

git config -l

  1. git status --> git st
    git config --global alias.st status

  2. git checkout --> git co
    git config --global alias.co checkout

  3. git commit --> git cm
    git config --global alias.cm commit

  4. git branch --> git br
    config --global alias.br branch

  5. git last --> git log -1
    git config --global alias.last 'log -1'

  6. git stash --> git ss
    git config --global alias.ss stash

  7. git rebase —> git rb
    git config —global alias.rb rebase

  8. git log --> git lg
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

相关文章

网友评论

      本文标题:git config

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