Sergey
Sergey

Reputation: 795

Track git pushes and checkout

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

?

Thanks in advance.

Upvotes: 0

Views: 109

Answers (1)

Sven Marnach
Sven Marnach

Reputation: 601679

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.

Upvotes: 1

Related Questions