跟踪git推送和结帐 [英] Track git pushes and checkout

查看:130
本文介绍了跟踪git推送和结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我通过git将文件分发给我的客户,并希望观察这种情况 - 来自我的客户的谁更新了所需文件,谁没有,那么是否有任何方法可以跟踪特定客户?


  • a)git从git服务器中取出

  • b)git checkout
    成功





预先致谢。

解决方案

git push 由客户执行,将该客户的提交添加到您的回购 - 您应该能够看到是否有新通过使用 git log 或类似内容从您的客户提交。您也可以激活推荐日志树枝,看到推在那里。对于裸仓库,缺省情况下reflogs处于禁用状态,可通过设置配置变量 core.logAllRefUpdates true



对于 git cehckout ,您不会有机会看到它,因为它完全是本地操作,发生在您的客户机器上。

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.

解决方案

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.

这篇关于跟踪git推送和结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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