I am running into this problem on a rails app I am working on. I was working on a feature branch and wanted to rebase from the most recent master. I ran the following commands:
$ git checkout master
$ git pull --rebase
If I try to checkout back to my feature branch I get the following error:
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Gemfile.lock
I have tried the following commands to resolve the Gemfile.lock back to aster with none of them being successful:
$ git checkout -- Gemfile.lock
$ git stash
$ git reset HEAD --hard
Every time I run a new git command I go back to the Gemfile.lock having changes not staged for commit.
Here are the following versions of libraries I am working with:
$ git --version => 2.3.3
$ bundler --version => 1.7.9