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:<
There must be some process running in the background or some side-effect of executing the git commands in your shell that is modifying the Gemfile.lock.
I am not familiar with rvm's magic (although that sounds plausible); here are some other things to check:
spring stop (or bin/spring stop or bundle exec spring stop) to gracefully terminate that process..git/hooks directory.git might be an alias in your shell for another command. Run alias to see a list of shell aliases..bashrc or .bash_profile.