# Atomicity of git-push operation.

2 messages from 2009-12-23 to 2009-12-23. Participants: Jan Zalcman, Shawn O. Pearce.
Thread: https://gitlist.dev/t/22014

## Jan Zalcman, 2009-12-23 11:51

Subject: Atomicity of git-push operation.
Message-ID: <4B32044A.7010601@9livesdata.com>
URL: https://gitlist.dev/e/4B32044A.7010601%409livesdata.com

```
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

```

## Shawn O. Pearce, 2009-12-23 15:25

Subject: Re: Atomicity of git-push operation.
Message-ID: <20091223152529.GC13762@spearce.org>
URL: https://gitlist.dev/e/20091223152529.GC13762%40spearce.org
In-Reply-To: <4B32044A.7010601@9livesdata.com>

```
Jan Zalcman <zalcman@9livesdata.com> wrote:
>  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.

-- 
Shawn.

```
