方法:git branch <branch_name> <hash_val>
首先通过 git reflog 查看删除历史的散列值:

找到需要回复的分支的散列值,然后git branch <branch_name> <hash_val>

。这样就可以恢复已经删除的分支了。
方法:git branch <branch_name> <hash_val>
首先通过 git reflog 查看删除历史的散列值:
找到需要回复的分支的散列值,然后git branch <branch_name> <hash_val>
。这样就可以恢复已经删除的分支了。
本文标题:git 回复已删除的分支
本文链接:https://www.haomeiwen.com/subject/agmlxctx.html
网友评论