Gemfile.lock contains merge conflicts

前端 未结 3 2341
太阳男子
太阳男子 2021-02-19 15:27

I just ran git push origin master and got this error after trying to run rails s:

Your Gemfile.lock contains merge conflicts.
Run `git          


        
3条回答
  •  失恋的感觉
    2021-02-19 16:10

    Gems that were used in any branch should have been add to the Gemfile. Therefore you can checkout the most recent clean Gemfile.lock with:

    git checkout HEAD -- Gemfile.lock

    And then run bundle install to install the necessary gems and regenerate the Gemfile.lock

提交回复
热议问题