Master failed to write error while pushing commit

I have a git repository on a company network drive and had no problem pulling from it. However, i wasn’t able to push any commits into it, though I had a few good luck but recently I couldn’t get anything in it. The error was:

C:\Program Files\Git\bin\git.exe push “origin” master:master error:
Couldn’t set refs/heads/master To //software/pdd.git/ ! [remote
rejected] master -> master (failed to write) error: failed to push
some refs to ‘//software/pdd.git/’ Done

  • cannot pull Git remote repository from Sourcetree
  • Multi-Session Manager for Git Bash Like GNU's Screen
  • Git: Confusion about merge algorithm, conflict format, and interplay with mergetools
  • Is `git merge` able to display every change (w.r. to a common ancestor) as merge conflict?
  • Git reset and checkout by single command
  • Pod from github not working
  • I suspect that it got to with the master file. On Windows, it shows that I might have been put into a network group that does not allow me to do modify but was able to read, write and execute.

    My question is: If i was able to push a few times before, this file permission thing shouldm’t be a hassle to me. If it, indeed, that I don’t have enough privillage to modify, is there a workaround?

    PS: The company is reluctant to change my network group to another, which would enable me to modify files.

  • Jenkins guide needed for build, deploy, provision and rollback, keeping 5 releases
  • Apache Connection Refused when running Docker-client Java API
  • git ignore exception not working as desired
  • How to delete git-notes commit?
  • Git pull and specify directory?
  • Should Git be used to store continuous integration builds?
  • One Solution collect form web for “Master failed to write error while pushing commit”

    Check the question “Pushing to a Git repository on an NFS share fails”:

    The NAS is doing weird things to permissions, setting the sticky bit on all directories. This explains the behavior. An additional chmod solved the problem.

    That means this is a permission issue on the target (remote) side, as illustrated in “Git issues after upgrading to osx Lion”:

    there was an odd permission for everyone as ‘custom’. I updated this to be ‘Read & Write’ and the commit was finally successful.

    As a “workaound”, See this Error section:

    I just deleted my bare repository and created a brand new one and pushed my changes over there. And everything works again.

    Git Baby is a git and github fan, let's start git clone.