Git常用命令

Posted qifengle1412

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git常用命令相关的知识,希望对你有一定的参考价值。

  • 新建分支
    #创建分支
    git branch [name]
    #切换分支
    git checkout [name]
    #添加到暂存
    git add .
    #提交到本地
    git commit -m message
  • 提交分支到github
    #提交分支到远程仓库
    git push origin branch:branch
    #Github审核过后,更新master
    git pull

     

以上是关于Git常用命令的主要内容,如果未能解决你的问题,请参考以下文章