Git Push Failed to Write

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

After executing a git push the message below is on the output:

1 2 3 4 5 6 7 8 9 Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Compressing objects: 100% (3/3), 491 bytes | 0 bytes/s, done. Total 3 (delta 2), reused 0 (delta 0). error: couldn't set ref/heads/master To http://user@domain/scm/{project-slug}/{repo-name}.git ! [remote rejected] BRANCH-NAME -> BRANCH-NAME (failed to write) error: failed to push some refs to 'http://user@domain/scm/{project-slug}/{repo-name}.git'

Cause

You don't have full control (permission) on the BITBUCKET_HOME directory.

On Windows environment, please

Resolution

Updated on April 16, 2025

Still need help?

The Atlassian Community is here for you.