由于某种原因,git commit会创建资产和临时文件 [英] git commit creates assets and temporary files for some reason
问题描述
每当我运行 git commit -mblah
,出于某种原因,我的应用程序正在创建一堆随机文件。这是一个问题,因为它占用了我服务器上的大量空间,我的 git push heroku master
命令将超时。
发生了什么?以下是我上一次提交的几乎空白应用的输出。我在应用上唯一的东西就是这些宝石:
source'https://rubygems.org'
#Bundle edge Rails改为:gem'rails',github:'rails / rails'
gem'rails','4.1.1'
gem' bootstrap-sass','〜> 3.1.1'
组:开发do
gem'sqlite3'
结束
组:生产do
gem'pg'
gem'rails_12factor'
end
#使用sqlite3作为Active Record的数据库
gem'sqlite3'
#使用SCSS进行样式表
gem'sass-rails','〜> 4.0.3'
#使用Uglifier作为JavaScript资源的压缩器
gem'uglifier','> = 1.3.0'
#使用CoffeeScript for .js.coffee资产和视图
gem'咖啡栏','〜> 4.0.0'
#请参阅https://github.com/sstephenson/execjs#readme以获得更多支持的运行时
#gem'therubyracer',平台:: ruby
#使用jquery作为JavaScript库
gem'jquery-rails'
#Turbolinks使Web应用程序中的以下链接更快。阅读更多:https://github.com/rails/turbolinks
gem'turbolinks'
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder','〜> 2.0'
#bundle exec rake doc:rails在doc / api下生成API。
gem'sdoc','〜> 0.4.0',组::doc
#使用ActiveModel has_secure_password
#gem'bcrypt','〜> 3.1.7'
#使用独角兽作为应用服务器
#gem'unicorn'
#使用Capistrano进行部署
#gem'capistrano- rails',group::development
#使用调试器
#gem'debugger',group:[:development,:test]
#Windows不包括zoneinfo文件,因此捆绑tzinfo-data gem
gem'tzinfo-data',平台:[:mingw,:mswin]
主页上有一个简单的引导程序传送带。但是所有这些其他文件都是在git commit上创建的:
$ git commit -mfirst commit
[ master(root-commit)8684d20]第一次提交
警告:LF将被替换为.gitignore中的CRLF。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被Gemfile中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被Gemfile.lock中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将由README.rdoc中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在Rakefile中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / assets / javascripts / application.js中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / assets / javascripts / pages.js.coffee中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / assets / stylesheets / application.css中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / controllers / application_controller.rb中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / controllers / pages_controller.rb中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / helpers / application_helper.rb中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / helpers / pages_helper.rb中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被app / views / layouts / application.html.erb中的CRLF所取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被箱/包中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在箱/栏中由CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在箱/耙中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config.ru中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / application.rb中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / boot.rb中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / database.yml中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / environment.rb中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:在config / environments / development.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / environments / production.rb中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:在config / environments / test.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:在config / initializers / backtrace_silencers.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:在config / initializers / cookies_serializer.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:在config / initializers / filter_parameter_logging.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / initializers / inflections.rb中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / initializers / mime_types.rb中被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / initializers / session_store.rb中由CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在config / initializers / wrap_parameters.rb中被CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / locales / en.yml中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / routes.rb中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被config / secrets.yml中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将在db / seeds.rb中被CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:LF将由公共/ 404.html中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被公共/ 422.html中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被public / 500.html中的CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被public / robots.txt中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
警告:在测试/控制器/ pages_controller_test.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:在测试/帮助程序/ pages_helper_test.rb中,LF将被CRLF取代。
该文件将在工作目录中具有其原始行结尾。
警告:LF将被test / test_helper.rb中的CRLF替换。
该文件将在工作目录中具有其原始行结尾。
64个文件已更改,971个插入(+)
创建模式100644 .gitignore
创建模式100644 Gemfile
创建模式100644 Gemfile.lock
创建模式100644 README.rdoc
创建模式100644 Rakefile
创建模式100644 app / assets / images / .keep
创建模式100644 app / assets / images / pic1.JPG
创建模式100644 app / assets / images / pic2.JPG
创建模式100644 app / assets / images / pic3.JPG
创建模式100644 app / assets / javascripts / application.js
创建模式100644 app / assets / javascripts / pages.js.coffee
创建模式100644 app / assets / stylesheets / application.css
创建模式100644 app / assets / stylesheets / pages.css.scss
创建模式100644 app / controllers / application_controller.rb
创建模式100644 app / controllers / concerns / .keep
创建模式100644 app / controllers / pages_controller.rb
创建模式100644 app / helpers / application_helper.rb
创建模式100644 app / helpers / pages_helper.rb
创建模式100644 app / mailers / .keep
创建模式100644 app / models / .keep
创建模式100644 app / models / concerns / .keep
创建模式100644 app / views / layouts / application.html .erb
创建模式100644 app / views / pages / landing.html.erb
创建模式100644 bin / bundle
创建模式100644 bin / rails
创建模式100644 bin / rake
创建模式100644 config.ru
创建模式100644 config / application.rb
创建模式100644 config / boot.rb
创建模式100644 config / database.yml
创建模式100644 config / environment.rb
创建模式100644 config / environments / development.rb
创建模式100644 config / environments / production.rb
创建模式100644 config / environments / test.rb
创建模式100644 config / initializers / backtrace_silencers.rb
创建模式100644 config / initializers / cookies_serializer.rb
创建模式100644 config / initializers / filter_parameter_logging.rb
创建模式100644 config /initializers/inflections.rb
cr eate模式100644 config / initializers / mime_types.rb
创建模式100644 config / initializers / session_store.rb
创建模式100644 config / initializers / wrap_parameters.rb
创建模式100644 config / locales / en .yml
创建模式100644 config / routes.rb
创建模式100644 config / secrets.yml
创建模式100644 db / seeds.rb
创建模式100644 lib / assets /。保持
创建模式100644 lib / tasks / .keep
创建模式100644 log / .keep
创建模式100644 public / 404.html
创建模式100644 public / 422.html
创建模式100644 public / 500.html
创建模式100644 public / favicon.ico
创建模式100644 public / robots.txt
创建模式100644 test / controllers / .keep
创建模式100644测试/控制器/ pages_controller_test.rb
创建模式100644测试/灯具/ .keep
创建模式100644测试/助手/ .keep
创建模式100644测试/助手/ pages_helper_test .rb
创建模式100644测试/集成/ .keep
创建m ode 100644测试/邮件程序/ .keep
创建模式100644测试/模型/ .keep
创建模式100644 test / test_helper.rb
创建模式100644 vendor / assets / javascripts / .keep
create mode 100644 vendor / assets / stylesheets / .keep
任何人都知道这里发生了什么?
看起来您正在提交新创建的rails应用程序文件。
一切似乎都很好。
64个文件已更改,971个插入(+)
一堆rails应用程序文件和.keep文件,
没什么大不了的
Whenever I run git commit -m "blah"
, my apps are creating a bunch of random files, for some reason. This is causing a problem because it is taking up lots of space on my server and my git push heroku master
command will timeout.
What is happening? Below is the output from my last commit on an almost blank app. The only things I have on the app are these gems:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
gem 'bootstrap-sass', '~> 3.1.1'
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]
And a simple bootstrap carousel on the home page. However all these other files get created on the git commit:
$ git commit -m "first commit"
[master (root-commit) 8684d20] first commit
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Gemfile.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in README.rdoc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Rakefile.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/assets/javascripts/application.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/assets/javascripts/pages.js.coffee.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/assets/stylesheets/application.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/controllers/application_controller.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/controllers/pages_controller.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/helpers/application_helper.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/helpers/pages_helper.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/views/layouts/application.html.erb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in bin/bundle.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in bin/rails.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in bin/rake.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config.ru.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/application.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/boot.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/database.yml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/environment.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/environments/development.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/environments/production.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/environments/test.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/backtrace_silencers.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/cookies_serializer.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/filter_parameter_logging.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/inflections.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/mime_types.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/session_store.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/initializers/wrap_parameters.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/locales/en.yml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/routes.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in config/secrets.yml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in db/seeds.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in public/404.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in public/422.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in public/500.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in public/robots.txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in test/controllers/pages_controller_test.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in test/helpers/pages_helper_test.rb.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in test/test_helper.rb.
The file will have its original line endings in your working directory.
64 files changed, 971 insertions(+)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 README.rdoc
create mode 100644 Rakefile
create mode 100644 app/assets/images/.keep
create mode 100644 app/assets/images/pic1.JPG
create mode 100644 app/assets/images/pic2.JPG
create mode 100644 app/assets/images/pic3.JPG
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/javascripts/pages.js.coffee
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/assets/stylesheets/pages.css.scss
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/controllers/concerns/.keep
create mode 100644 app/controllers/pages_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/helpers/pages_helper.rb
create mode 100644 app/mailers/.keep
create mode 100644 app/models/.keep
create mode 100644 app/models/concerns/.keep
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 app/views/pages/landing.html.erb
create mode 100644 bin/bundle
create mode 100644 bin/rails
create mode 100644 bin/rake
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/cookies_serializer.rb
create mode 100644 config/initializers/filter_parameter_logging.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 config/secrets.yml
create mode 100644 db/seeds.rb
create mode 100644 lib/assets/.keep
create mode 100644 lib/tasks/.keep
create mode 100644 log/.keep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100644 test/controllers/.keep
create mode 100644 test/controllers/pages_controller_test.rb
create mode 100644 test/fixtures/.keep
create mode 100644 test/helpers/.keep
create mode 100644 test/helpers/pages_helper_test.rb
create mode 100644 test/integration/.keep
create mode 100644 test/mailers/.keep
create mode 100644 test/models/.keep
create mode 100644 test/test_helper.rb
create mode 100644 vendor/assets/javascripts/.keep
create mode 100644 vendor/assets/stylesheets/.keep
Anyone have any idea what is happening here?
Looks like you're committing newly created rails application files. Everything seems fine. Bunch of rails app files and .keep files to keep folders in repo.
64 files changed, 971 insertions(+)
no big deal
这篇关于由于某种原因,git commit会创建资产和临时文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!