Ben Chuanlong Du's Blog

It is never too late to learn.

Gitignore Examples

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. You can ignore files in the root directory only by prefixing a pattern with /. For example, if you want to ignore the file features.txt in the root directory only, you can add /features.txt into .gitignore.

Online Tools

Gitignore Example for Python

https://github.com/dclong/xinstall/blob/dev/xinstall/data/git/gitignore_python

Gitignore Example for Java

https://github.com/dclong/xinstall/blob/dev/xinstall/data/git/gitignore_java

Comments