1、创建本地分支

  git branch  //查看远程分支

  git之remote branch controller(远程分支控制)

  git checkout -b branch_name //创建远程分支

  git之remote branch controller(远程分支控制)

  在查看分支git branch

  git之remote branch controller(远程分支控制)

2、将分支提交到远程仓库

  git之remote branch controller(远程分支控制)

  此时远程库中会有test-branch分支:

  git之remote branch controller(远程分支控制)

6、删除远程分支

  首先,当前所在分支不能被删除,若要删除需切换到其它分支:

  git之remote branch controller(远程分支控制)

  删除本地分支git branch -d test-branch

  git之remote branch controller(远程分支控制)

  删除远程分支git push origin :test-branch

  git之remote branch controller(远程分支控制)

  此时远程仓库之前的test-branch分支已经没有了

  git之remote branch controller(远程分支控制)

相关文章:

  • 2022-01-04
  • 2021-10-18
  • 2022-12-23
  • 2021-07-11
  • 2022-02-08
猜你喜欢
  • 2021-09-29
  • 2022-02-08
  • 2022-12-23
  • 2022-03-05
  • 2021-11-04
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案