Troubles with git and Gemfile.lock

前端 未结 3 1491
孤城傲影
孤城傲影 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:33

    You are not able to checkout Gemfile.lock since spring is running in the backend to sync your code in developement environment. If you want to checkout, firstly stop the spring processes. You can stop spring in two different ways.

    1. Either you just stop spring using command in the terminal

    spring stop

    1. Or by manually killing the processes of spring running on local, just like

      ps -aef | grep spring
      kill -9 pid
      

    Both looks good to me. Choose what's better for you!

提交回复
热议问题