Skip to content

Commit

Permalink
git ignore files do not need to ignore ignoring themselves
Browse files Browse the repository at this point in the history
To ensure the dir exists with git, a file is required - but it can be
completely empty.

Since the git ignore file is already in the repo it is not necessary to
not-ignore it - it is already tracked.

Though trivial these !.gitignore files are being understood by some to
mean that they must contain this exact syntax to ensure an empty folder
exists.
  • Loading branch information
AD7six committed Nov 23, 2011
1 parent a0cf284 commit 875df4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions img/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
!.gitignore

2 changes: 0 additions & 2 deletions js/mylibs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
!.gitignore

0 comments on commit 875df4e

Please sign in to comment.