摘要: 原分支 :oldBranch 新分支:dev_Zq 1:创建本地分支 git branch newBranch 2:查看全部分支 git branch -a 绿色的为当前创建的分支 3:切换到原分支 git checkout oldBranch git pull 4:将原分支复制到新分支 git c 阅读全文
posted @ 2020-09-29 17:47 衣兄先生 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 假设分支名称为oldName想要修改为 newName 1:还没有推送到远程的本地分支重命名 git branch -m oldName newName 2:已经推送到远程的分支重命名 (1):重命名本地分支 git branch -m oldName newName (2):删除远程分支 git 阅读全文
posted @ 2020-09-29 17:36 衣兄先生 阅读(667) 评论(0) 推荐(0) 编辑