跟踪 git 推送和结账
目前,我通过 git 将文件分发给我的客户,并希望观察情况 - 我的客户中谁更新了所需文件,谁没有,那么有什么方法可以跟踪该特定客户
- a) 从 git 服务器拉取的 git
- b) git 结账 成功地
?
提前致谢。
Currently, I distribute files to my customers through git, and would like to observe situation - who from my customers updated required files, who`s not, so is there any way to track that specific customer
- a) git pulled from git server
- b) git checkout
successfully
?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
客户执行的 git push 会将来自该客户的提交添加到您的存储库中 - 您应该能够使用 git log 查看是否有来自客户的新提交或类似的。您还可以激活reflogs树枝并看到那里的推动力。对于裸存储库,默认情况下禁用引用日志,可以通过设置 配置变量
core.logAllRefUpdates
为true
。对于 git cehckout ,您将没有机会看到这一点,因为它是发生在客户计算机上的完全本地操作。
git push
performed by a customer adds commits from that customer to your repo -- you should be able to see if there are new commits which originate from your customers by usinggit log
or similar. You can also activate the reflogs of the branches and see the pushes there. For a bare repository, reflogs are disabled by default and can be enabled by setting the configuration variablecore.logAllRefUpdates
totrue
.For
git cehckout
, you won't have a chance to see this because it is a completely local operation that happens on your customer's machine.