ruby on rails - Troubles with git and Gemfile.lock -
i keep running following error gemfile.lock
whenever want git pull
or checkout new branch.
error: local changes following files overwritten merge: gemfile.lock please, commit changes or stash them before can merge. aborting
the problem can't figure out how fix it.
- stashing file doesn't work -- local changes stay there reason.
- i've tried running
git checkout -- gemfile.lock
discard changes, doesn't work either -- local changes stay there. - i've tried creating new branch , committing
gemfile.lock
changes branch... doesn't work either. changes remain!
what need do? i've gone far clone new git repo, enough, starts happening again.
this happened me , git reset --hard head
accepted answer didn't help. however, running spring stop
did trick. suspect spring rewriting file whenever modified ensure in sync code running via spring.
Comments
Post a Comment