查找谁删除了一个git分支 [英] Find who deleted a git branch
本文介绍了查找谁删除了一个git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果您有权访问远程存储库最近),您可以使用 reflog
来找出分支被删除的时间。如果需要,您可以在该提交上创建一个分支来恢复它。
gitolite文档给出了更多信息。
Someone has deleted a remote git branch (I had not a local copy of it). Is it possible to find who and when deleted the branch?
解决方案
If you have access to the remote repository (and it was done recently), you can use reflog
to find out when the branch was deleted. You can then create a branch on that commit to recover it if needed.
The gitolite documentation gives some more information.
这篇关于查找谁删除了一个git分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文