Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up .gitignore and make a note about using global ignores

  • Loading branch information...
commit 139562f241136ca89209ddaffaf10b0b3a599b39 1 parent 057a268
@jeremy jeremy authored
Showing with 22 additions and 25 deletions.
  1. +22 −25 .gitignore
View
47 .gitignore
@@ -1,26 +1,23 @@
-pkg
-.bundle
-Gemfile.lock
+# Don't put *.swp, *.bak, etc here; those belong in a global ~/.gitignore.
+# Check out http://help.github.com/ignore-files/ for how to set that up.
+
debug.log
-doc/rdoc
-activemodel/doc
-activeresource/doc
-activerecord/doc
-activerecord/sqlnet.log
-actionpack/doc
-actionmailer/doc
-activesupport/doc
-activesupport/test/tmp
-activemodel/test/fixtures/fixture_database.sqlite3
-actionpack/test/tmp
-activesupport/test/fixtures/isolation_test
-dist
-railties/test/500.html
-railties/test/fixtures/tmp
-railties/test/initializer/root/log
-railties/doc
-railties/guides/output
-railties/tmp
-.rvmrc
-.rbenv-version
-RDOC_MAIN.rdoc
+/.bundle
+/.rbenv-version
+/.rvmrc

.rbenv-version and .rvmrc should be on ~/.gitignore too, no?

rails do not depend on these files, developer machine maybe.

and if that's the case, they should be on global gitignore.

@vijaydev Collaborator

See e75c18b :)

@guilleiguaran Owner

I couldn't put .rbenv-version in my global .gitignore since I'm sharing it with some developers in a project (and with production machines)

@morgoth
morgoth added a note

@guilleiguaran if you want to add ignored file to repository, use force option:
git add -f .rbenv-version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+/Gemfile.lock
+/pkg
+/dist
+/doc/rdoc
+/*/doc
+/*/test/tmp
+/activerecord/sqlnet.log
+/activemodel/test/fixtures/fixture_database.sqlite3
+/activesupport/test/fixtures/isolation_test
+/railties/test/500.html
+/railties/test/fixtures/tmp
+/railties/test/initializer/root/log
+/railties/doc
+/railties/guides/output
+/railties/tmp
+/RDOC_MAIN.rdoc

2 comments on commit 139562f

@josevalim
Owner

:heart:

@sobrinho

.rbenv-version and .rvmrc should be on ~/.gitignore too, no?

rails do not depend on these files, developer machine maybe.

and if that's the case, they should be on global gitignore.

@vijaydev
Collaborator

See e75c18b :)

@guilleiguaran

I couldn't put .rbenv-version in my global .gitignore since I'm sharing it with some developers in a project (and with production machines)

@morgoth

@guilleiguaran if you want to add ignored file to repository, use force option:
git add -f .rbenv-version

Please sign in to comment.
Something went wrong with that request. Please try again.