Gitignore & Config

Configure what Git tracks and how

.gitignore tells Git which files to skip. Git config customizes how Git behaves.

.gitignore patterns

Ignore a directory and everything in it

Project files
src/index.tstracked
src/app.tstracked
package.jsontracked
.gitignoretracked
.envignored
node_modules/matched
dist/ignored
error.logignored
photo.jpgignored
.gitignore
# .gitignore
node_modules/
*.log
.env
dist/
*.{jpg,png}
!important.log
Previous
20 / 20