Git-push和pull分支


  • 查看分支信息:git branch -r
  • 查看所有分支信息:git branch -a
  • 本地推送分支:git push origin branch-name
  • 推送分支前最好先pull分支:git pull origin branch-name
  • 本地创建与远程分支对应的分支:git checkout -b branch-name origin/branch-name
  • 建立本地分支与远程分支关联:git branch --set-upstream-to=origin/branch-name branch-name


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM