有时候远程某个其他分支需要删除,然而现在是在本地其他分支上开发业务, 需要把当前分支通过暂存起来,删除远程分支再同步到本地继续开发

 

删除远程分支命令

git branch -D yourbranchName   删除分支

git fetch  同步分支

git checkout -b branchName origin/originName  从远程拉取分支

git stash  暂存分支

git stash pop 取出暂存分支

相关文章:

  • 2021-12-24
  • 2021-04-30
  • 2022-12-23
  • 2021-04-17
  • 2021-11-06
猜你喜欢
  • 2021-10-15
  • 2021-10-14
  • 2021-06-16
  • 2021-08-08
  • 2021-11-01
相关资源
相似解决方案