Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up .gitignore

Remove all the ignores from `.gitignore`. The default boilerplate
doesn't generate any project-specific files that need to be ignored. All
OS and Editor-generated files should be globally ignored rather than
polluting the local project ignores.

Further information on using git ignore's appropriately can be found in
the miscellaneous part of the bundled docs.
  • Loading branch information...
commit 3ce6e98cde37308ce1207ad09970c54a266d0a9a 1 parent 703d0b8
@necolas necolas authored
Showing with 2 additions and 52 deletions.
  1. +2 −52 .gitignore
View
54 .gitignore
@@ -1,52 +1,2 @@
-# Read about how to use .gitignore: http://h5bp.com/ae
-
-# Numerous always-ignore extensions
-*.diff
-*.err
-*.orig
-*.log
-*.rej
-*.swo
-*.swp
-*.vi
-*~
-*.sass-cache
-
-# OS or Editor folders
-.DS_Store
-._*
-Thumbs.db
-.cache
-.project
-.settings
-.tmproj
-nbproject
-*.sublime-project
-*.sublime-workspace
-
-# Dreamweaver added files
-_notes
-dwsync.xml
-
-# Komodo
-*.komodoproject
-.komodotools
-
-# Espresso
-*.esproj
-*.espressostorage
-
-# Rubinius
-*.rbc
-
-# Folders to ignore
-.hg
-.svn
-.CVS
-intermediate
-publish
-.idea
-
-# build script local files
-build/buildinfo.properties
-build/config/buildinfo.properties
+# Include your project-specific ignores in this file
+# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files

9 comments on commit 3ce6e98

@arxpoetica

Pretty cool...but...it'd be nice to have the right list. The link referenced misses a lot of the previous ignores (like sublime files, etc.). Also, probably a good idea to include /build/... stuff, since that is project specific.

@necolas
Owner

There's a comprehensive set of ignores (include OS/Editor) linked to in the docs - https://github.com/h5bp/html5-boilerplate/blob/master/doc/misc.md - and also mentioned in the links at the bottom of that github.com url. Since this project is now independent from the build script projects, so there's nothing here that needs to be ignored by default.

@arxpoetica

Gotcha & thx.

@devinrhode2

@necolas I like the change, but I think we can do a better page than github with giving a better 'recommended' set of ignores that mostly derives from the previous .gitignore here.

But then it's natural to wonder:
Why aren't github help pages open source, I can't contribute to them!
@defunkt help us help github!

Global gitignore FTW

@reinink

A little late to this party, but I actually miss the old .gitignore file. While I understand the logic behind removing it, and the global ignore recommendation, it does has a hole.

The problem isn't with my own system (I'm using a global), or even my coworkers systems (who are also using globals). The problem occurs when bringing in outside developers who maybe don't have such a global ignore file set. By having an application specific file, I'm able to better ensure that these files don't get included in my repo.

Anyone have any advice on how to avoid this problem?

@maxxiimo

I'm probably not understanding the issue with outside developers, but from what I'm thinking I understand, why not make the .gitignore file part of the application by default in your initial commit for a new project, or git commit it if it's not already part of the application? This way new members to the team will get it when they clone the repo, and any changes to it that are application-specific will be shared by the team.

Any new application I build always begins with this one, which is derived from the original boilerplate:

https://github.com/maxxiimo/base-haml/blob/master/.gitignore

The setup instructions I share with new members:

https://github.com/maxxiimo/the-front-end-manifesto/blob/master/appendix-1.md#gitignore

@necolas
Owner

Anyone have any advice on how to avoid this problem?

Get them to use a global ignore. When you bring in outside developers, you must have a setup process to ensure they have all the correct dependencies and access to various systems. Part of that process should involve ensuring they are correctly ignoring files that shouldn't be under source control.

@reinink

@necolas Gotcha, but things get ugly when people have different views on what files should be hidden globally.

@sindresorhus

@reinink you're still free to (mis)use the local .gitignore, which should contain project specific ignores.

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