12. .gitignore Patterns + Common Files

8 cards

Review this deck
All cards in this deck

`*.log`

all .log files in every directory

`build/`

a build directory anywhere

`/dist`

only the dist directory at the root

`!important.log`

exception (do not ignore this file)

`temp-*`

files starting with temp-

`git check-ignore -v <file>`

see which rule ignores a file

`git status --ignored`

also list ignored files

`git rm --cached <file>`

untrack a file that is already tracked but should be ignored

12. .gitignore Patterns + Common Files – Flashcards – Git | Học Dev