【发布时间】:2017-07-06 04:12:03
【问题描述】:
我在生产中的 node_modules 被另一台具有不同 node_modules 的本地机器弄乱了。现在每当I git pull origin master 生产时,都会显示以下消息:
ubuntu@ip-:~/proj$ git pull origin master
Enter passphrase for key '/home/ubuntu/.ssh/id_rsa':
From bitbucket.org:laics/proj
* branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
node_modules/gulp-autoprefixer/package.json
node_modules/gulp-complexity/package.json
node_modules/gulp-concat/package.json
node_modules/gulp-cssnano/node_modules/object-assign/package.json
node_modules/gulp-cssnano/package.json
node_modules/gulp-jsvalidate/node_modules/.bin/esparse
node_modules/gulp-jsvalidate/node_modules/.bin/esvalidate
node_modules/gulp-jsvalidate/node_modules/esprima/package.json
node_modules/gulp-jsvalidate/package.json
node_modules/gulp-less/node_modules/object-assign/package.json
node_modules/gulp-less/package.json
node_modules/gulp-ng-annotate/package.json
node_modules/gulp-notify/package.json
node_modules/gulp-rename/package.json
.........
node_modules/gulp-shell/node_modules/lodash/isEmpty.js
node_modules/gulp-shell/node_modules/lodash/isError.js
node_modules/gulp-shell/node_modules/lodash/isFunction.js
node_modules/gulp-shell/node_modules/lo
Aborting
最终我要更新的文件没有更新。
【问题讨论】: