Zest.

Git: .gitignore basics

A short, tested Git example for .gitignore basics. Copy it and adjust the names and paths for your project.

Git
node_modules/
.env
*.log
!important.log

# stop tracking a file that is already committed:
# git rm --cached path/to/file

Find it in Zest

Search for “git .gitignore basics” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Git examples

All Git examples