Skip to contentSkip to conversation

Atomicity of git-push operation.

DISCUSSION Jan Zalcman 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi,
I have a simple question about "push" operation but I couldn't find an
answer: is git-push (also with --tags flag) atomic ? Especially: if refs changing (during push) is atomic ?
Thanks,
Janek

#1 lore raw
Quoted 3 lines · Jan Zalcman

I have a simple question about "push" operation but I couldn't find an
answer: is git-push (also with --tags flag) atomic ? Especially: if refs changing (during push) is atomic ?

Yes, its atomic, at the per-ref level.

If you push 3 refs, and one of them updates during the push, the other two will push successfully, but the one that was updated will be rejected.

Signature · 1 line
Shawn.