git配置别名alias

方式1:

  1.vim ~/.gitconfig

  2.[alias]

    s = status

    p = push

 

方式2:

  1.vim ~/.bash_profile

  2.alias gs='git  status'

  3.退出.bash_profile

  4.source ~/.bash_profile

 

注:推荐方式2,别名更加灵活

    

posted on 2018-06-19 13:49  转身的猫  阅读(233)  评论(0)    收藏  举报

导航