Git Push Failed to Write

Troubleshooting Git

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

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 STASH_HOME directory.

On Windows environment, please

Resolution

  • Please fix the permissions for the STASH_HOME directory.
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.