Git push rejected “non-fast-forward”

后端 未结 12 1528
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 02:01

I am fairly new to git yet currently using it to manage our code in a team environment. I had some rebasing issues and I fixed them using

git ch         


        
12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 02:44

    Write lock on shared local repository

    I had this problem and none of above advises helped me. I was able to fetch everything correctly. But push always failed. It was a local repository located on windows directory with several clients working with it through VMWare shared folder driver. It appeared that one of the systems locked Git repository for writing. After stopping relevant VMWare system, which caused the lock everything repaired immediately. It was almost impossible to figure out, which system causes the error, so I had to stop them one by one until succeeded.

提交回复
热议问题