Skip to content
This repository

Add comment on where to find more information on .gitignore #1120

Closed
wants to merge 2 commits into from

4 participants

Hans Christian Reinl Roy Ronalds Nicolas Gallagher Mathias Bynens
Hans Christian Reinl
Owner

This comment in the .gitignore-file is supposed to solve some issues we had lately (#1065, #1070, #1073) with including a lot of extensions for files that are created by certain IDEs and editors. It should encourage users to set up a global .gitignore rather then relying on the HTML5 Boilerplate's .gitignore file.
This is a suggestion by @kvakes in #1065.

I'm all open to change this comment or the link where it goes.
It would be nice to have this link shortened with h5bp.com.

Any thoughts?

Hans Christian Reinl drublic Add comment on where to find more information on .gitignore
This solves some issues we had with including a lot of extensions for files that are created by certain IDEs and editors.
00bbc6d
Nicolas Gallagher
Owner

Could keep this a bit shorter, e.g., "Find out how to create a global .gitignore: http://h5bp.com/ae"

Hans Christian Reinl
Owner

I think the main goal is to let the user know where he/she can find out more about .gitignore. This is a bit more than the global .gitignore I think.
But it's ok with me to change the comment.

Roy Ronalds

May I just recommend trying to clarify that the "global" gitignore be termed something like a "all-git-repo" gitignore or something as explicit as possible? I use git heavily but didn't get the distinction at a glance, even the github article when you first view only uses the word "global" repeatedly in place of an explanation of the behavior. I have suggested some clarifying language to github for that article as well, but who knows if they'll act on that suggestion.

Nicolas Gallagher
Owner

I'd like to include just a short comment linking off to more info.

Mathias Bynens
Owner

Short URL: http://h5bp.com/ae

Hans Christian Reinl
Owner

Here is an update with @necolas' shorter version of the comment and the short-link. Thanks, @mathiasbynens :)

Hans Christian Reinl drublic closed this pull request from a commit
Hans Christian Reinl drublic Add a comment and link to more .gitignore info
A repository's `.gitignore` should be focused on ignoring files within
the repo that we do not want to be committed. For example, a build
directory.

A global ignore is a better place for ignoring OS-level files, editor
extensions, and files that you are always likely to want ignored (e.g.
zip).

Close #1065
Close #1120
2a60c6b
Hans Christian Reinl drublic closed this in 2a60c6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Jun 10, 2012
Hans Christian Reinl drublic Add comment on where to find more information on .gitignore
This solves some issues we had with including a lot of extensions for files that are created by certain IDEs and editors.
00bbc6d
Hans Christian Reinl drublic Shorten comment about global .gitignore, short-link b26bd57
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  .gitignore
2  .gitignore
... ... @@ -1,3 +1,5 @@
  1 +# Find out how to create a global .gitignore: http://h5bp.com/ae
  2 +
1 3 # Numerous always-ignore extensions
2 4 *.diff
3 5 *.err

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.