Handling changes to files with --skip-worktree from another branch
问题 On my machine, I've set --skip-worktree to config/database.yml . git update-index --skip-worktree config/database.yml Another developer has committed and merged into the develop branch changes to config/database.yml while working on the project. Now, when I do git pull origin develop , I get Andrews-Air:[project] agrimm$ git pull origin develop From bitbucket.org:[company]/[project] * branch develop -> FETCH_HEAD Updating [SHA]..[Another SHA] error: Your local changes to the following files