.gitignore自使用RubyMine后发生了变化

时间:2015-03-02 18:33:45

标签: git rubymine

我的旧项目gitignore看起来像这样:

https://gist.github.com/Koxzi95/35f377d436962df0b06c

自从我在项目中使用RubyMine以来,gitignore似乎没有在Atom编辑器中对Windows和OSX产生影响,并且在运行“git status'在Git Bash。

这可能是什么原因?

这是gitignore:

# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
# Need public system because lab machines.
# /public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html
# Ignore docs for now (Need them now)
# /doc/
.yardoc
# .yardopts
# TO-DO Comment out these rules if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
# config/secrets.yml
## Environment normalisation:
/.bundle
/vendor/bundle
# these should all be checked in to normalise the environment:
# Gemfile.lock
# .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json
## Node/Grunt ignores:
/node_modules/
# Gruntfile.js
# package.json 

1 个答案:

答案 0 :(得分:0)

由于某些原因,使用RubyMine后,.gitignore完全被破坏了。我还不确定为什么,但我必须逐行重写。

如果我对旧版本进行了更改,Atom会将其作为第1行的更改进行修改。例如,即使它在第9行也是如此。

不确定为什么会发生这种情况,如果可能的话,我想要一个解释。但现在修好了。