Skip to content

Commit 3f8c5a4

Browse files
Philip Oakleygitster
authored andcommitted
Doc: separate gitignore pattern sources
Use separate bulleted paragraphs for the three different gitignore pattern sources. Signed-off-by: Philip Oakley <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bc40dea commit 3f8c5a4

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

Documentation/gitignore.txt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,24 @@ precedence, the last matching pattern decides the outcome):
4141
variable 'core.excludesfile'.
4242

4343
Which file to place a pattern in depends on how the pattern is meant to
44-
be used. Patterns which should be version-controlled and distributed to
45-
other repositories via clone (i.e., files that all developers will want
46-
to ignore) should go into a `.gitignore` file. Patterns which are
47-
specific to a particular repository but which do not need to be shared
48-
with other related repositories (e.g., auxiliary files that live inside
49-
the repository but are specific to one user's workflow) should go into
50-
the `$GIT_DIR/info/exclude` file. Patterns which a user wants git to
51-
ignore in all situations (e.g., backup or temporary files generated by
52-
the user's editor of choice) generally go into a file specified by
53-
`core.excludesfile` in the user's `~/.gitconfig`. Its default value is
54-
$XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty,
55-
$HOME/.config/git/ignore is used instead.
44+
be used.
45+
46+
* Patterns which should be version-controlled and distributed to
47+
other repositories via clone (i.e., files that all developers will want
48+
to ignore) should go into a `.gitignore` file.
49+
50+
* Patterns which are
51+
specific to a particular repository but which do not need to be shared
52+
with other related repositories (e.g., auxiliary files that live inside
53+
the repository but are specific to one user's workflow) should go into
54+
the `$GIT_DIR/info/exclude` file.
55+
56+
* Patterns which a user wants git to
57+
ignore in all situations (e.g., backup or temporary files generated by
58+
the user's editor of choice) generally go into a file specified by
59+
`core.excludesfile` in the user's `~/.gitconfig`. Its default value is
60+
$XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or
61+
empty, $HOME/.config/git/ignore is used instead.
5662

5763
The underlying git plumbing tools, such as
5864
'git ls-files' and 'git read-tree', read

0 commit comments

Comments
 (0)