记录git分支覆盖

step1

  • 查看远程分支
    git branch -a

s2

  • 查看本地分支
    git branch

s3

  • 切换分支
git checkout 本地分支名

s4.同步代码

git pull

step5.推送(强制)

git push origin develop:目标分支名 -f

posted @ 2022-06-21 10:58  ethon-wang  阅读(20)  评论(0编辑  收藏  举报