GitLab远程分支被删除后怎么恢复
2022-07-13 本文已影响0人
BROWSER

在gitlab上店里activity找到某次提交的记录,或者在sourcetree上找到某一次记录

复制这次提交记录,然后打开终端,cd到项目目录下,执行命令
git checkout -b 分支的名字 上门复制的提交记录
例如
git checkout -b v220607 2b2e037fdefdcb0b7f4e5510a49d65a3f8f32eda
执行成功后,就能看到如下提示

然后再把拉下来的分支重新推送到远端就行了