查找谁删除了一个git分支 [英] Find who deleted a git branch

查看:558
本文介绍了查找谁删除了一个git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人删除了远程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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆