Track git pushes and checkout

二次信任 提交于 2019-12-11 17:34:35

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/4127466/track-git-pushes-and-checkout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!