Troubles with git and Gemfile.lock

前端 未结 3 1492
孤城傲影
孤城傲影 2020-12-28 13:53

I keep running into the following error with my Gemfile.lock whenever I want to do a git pull or checkout a new branch.

error: Your         


        
3条回答
  •  别那么骄傲
    2020-12-28 14:43

    This happened to me and git reset --hard HEAD from the accepted answer didn't help. However, running spring stop did the trick. I suspect spring is rewriting the file whenever it is modified to ensure that it is in sync with the code running via spring.

提交回复
热议问题