git基于某个分支新创建一个分支,并与远端仓库的分支建立关联

  1. 基于某个分支新建一个分支  git checkout -b test
  2. 将新创建的分支 test push到远端仓库git push origin test
  3. 本地分支与远端分支相关联  git branch --set-upstream-to=origin/test

 

posted @ 2024-12-02 14:30  铁打的代码流水的bug  阅读(14)  评论(0)    收藏  举报