开发者

Track git pushes and checkout

开发者 https://www.devze.com 2023-01-24 15:10 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号