主线分支:feature-sir-fengbaichao
基于主线分支创建的分支:feature-notification-ghh
① 切换到主线分支:
git checkout feature-sir-fengbaichao
② 拉取主线分支最新的代码:
git pull --rebase
③ 创建新分支并切换到该分支:
git checkout -b feature-notification-ghh
④ 推送新分支到远程仓库:
git push origin feature-notification-ghh -f
⑤ 关联远程仓库
git branch --set-upstream-to=origin/feature-notification-ghh
⑥ 尝试拉取验证:
git pull --rebase