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.
精彩评论