跟踪 git 推送和结账

发布于 2024-09-30 20:27:01 字数 162 浏览 2 评论 0原文

目前,我通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东走西顾 2024-10-07 20:27:01

客户执行的 git push 会将来自该客户的提交添加到您的存储库中 - 您应该能够使用 git log 查看是否有来自客户的新提交或类似的。您还可以激活reflogs树枝并看到那里的推动力。对于裸存储库,默认情况下禁用引用日志,可以通过设置 配置变量 core.logAllRefUpdatestrue

对于 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 using git 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 variable core.logAllRefUpdates to true.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文