[ADO] [Repo] - Support for git push atomic

cj8scrambler 20 Reputation points
2025-05-01T15:08:08.1166667+00:00

When trying to push a commit and tag simultaneously, i get a failure that the server doesn't support atomic push:

$ git push --atomic origin [branch] [tag]
fatal: the receiving end does not support --atomic push
fatal: the remote end hung up unexpectedly

Support for atomic operations was added in git 2.4 (10 years ago). I am running ADO AzureDevOps_M254_20250410.4.

  • Is there a way to correlate the git server version with the ADO version?
  • Is there a way to explicitly check git server version ADO Repos?
  • Is there a way to check the a git server configuration setting: git config receive.advertiseatomic
  • Is there a way to change at git server configuration setting that's not supported in the web interface?
Azure DevOps
0 comments No comments
{count} votes

Accepted answer
  1. Sirra Sneha 550 Reputation points Microsoft External Staff Moderator
    2025-05-02T06:10:50.08+00:00

    Hi @cj8scrambler,

    Azure DevOps Repos currently does not support atomic Git pushes (git push --atomic), That's why you're encountering the issue.

    Refer this Developer community doc to know more about the issue.

    This is because,

    • Azure DevOps uses a custom Git server that doesn’t advertise support for --atomic, even though atomic push has been in Git since v2.4.
    • There is no way to check the Git server version or server config (receive.advertiseatomic) in Azure DevOps.
    • Azure DevOps does not allow changing low-level Git server settings, even on self-hosted/on-prem environments.

    If you want to use atomic like behavior,

    • Run the below commands

    Push the branch:

    
    git push origin branch
    
    

    Then push the tag:

    
    git push origin tag || git push origin :branch
    
    

    This way, if tag push fails, the branch is rolled back.

    • You can also use GitHub, GitLab that fully supports atomic pushes if that's a blocker.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.