我已经将vendor文件夹添加到我的.gitignore
文件中,但是每当我运行git status时,它仍然会显示出vendor文件夹被修改了。
以下是我推送代码到存储库的步骤:
Created
.gitignore
file with following content:.idea/* log/* tmp/*
Pushed
.gitignore
file to repository:git add . git commit -m "test" git push origin master
Created new project that contains vendor folder
Pushed project with vendor folder to repository:
git add . git commit -m "test" git push origin master
Modified
.gitignore
file to ignore vendor folder:.idea/* log/* tmp/* vendor/bundle/* vendor/cache/* vendor/plugins/*
modified: vendor/bundle/ruby/1.9.1/bundler/gems/jquery-rails-f79e8f178
即使
.gitignore
文件中包含了vendor文件夹,也不会影响程序的正常运行。