Skip to content

Instantly share code, notes, and snippets.

@carlflor
Created May 25, 2016 07:03
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save carlflor/2a07339081848c0467f852a5401bf7a2 to your computer and use it in GitHub Desktop.
Save carlflor/2a07339081848c0467f852a5401bf7a2 to your computer and use it in GitHub Desktop.
This fixes the Gemfile.lock conflict when doing git rebase

If both the upstream and your feature branch have made changes to Gemfile, you will likely receive merge conflicts on Gemfile.lock when you rebase your feature branch. Don't try to resolve these manually; you'll probably just screw it up. Instead do this:

    git checkout --ours Gemfile.lock
    bundle
    git add Gemfile.lock
    git rebase --continue

This ensures that you get a correct Gemfile.lock at each step along the way.

from: https://www.snip2code.com/Snippet/302682/Handling-Gemfile-lock-conflicts-during--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment