需要删除远程分支,刚好有正在别的分支做的事情

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

删除远程分支命令

git branch -D yourbranchName   删除分支

git fetch  同步分支

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

git stash  暂存分支

git stash pop 取出暂存分支

原文地址:https://www.cnblogs.com/qqfontofweb/p/9134336.html