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.