1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Update ignoring-files.md

Clarified that a successful "touch .gitignore" gives no output.
This commit is contained in:
Patrik Hermansson
2021-10-11 22:00:56 +02:00
committed by GitHub
parent 6360186728
commit d74f46139a

View File

@@ -27,6 +27,7 @@ GitHub maintains an official list of recommended *.gitignore* files for many pop
$ touch .gitignore
```
If the command succeeds, it won't output anything.
For an example *.gitignore* file, see "[Some common .gitignore configurations](https://gist.github.com/octocat/9257657)" in the Octocat repository.
If you want to ignore a file that is already checked in, you must untrack the file before you add a rule to ignore it. From your terminal, untrack the file.