12. .gitignore Patterns + Common Files

8 thẻ

Review deck này
Tất cả thẻ trong deck

`*.log`

tất cả file .log ở mọi thư mục

`build/`

thư mục build ở mọi nơi

`/dist`

chỉ thư mục dist ở root

`!important.log`

ngoại lệ (không ignore file này)

`temp-*`

files bắt đầu bằng temp-

`git check-ignore -v <file>`

xem rule nào đang ignore file

`git status --ignored`

liệt kê cả files bị ignore

`git rm --cached <file>`

xoá file đã tracked nhưng cần ignore

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