Gemfile.lock contains merge conflicts

前端 未结 3 2091
春和景丽
春和景丽 2021-02-19 16:03

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:30

    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

提交回复
热议问题