Apa itu .gitignore
Rujukan artikel : Ignoring in Git: How To Use .gitignore Files When making commits to any Git repository , youβll choose the files you want to stage and then youβll commit them. But you might not want to commit every single one of your filesβthere are files that never need to get committed. This is where the .gitignore file is useful: it tells Git exactly which files to ignore and never track. Letβs take a look. What is gitignore? When youβre working in your copy, Git watches every file in and considers it in three ways: Tracked: Youβve already staged or committed the file. Untracked: Youβve not staged or committed. Ignored: Youβve explicitly told Git to ignore the file(s). The .gitignore file tells Git which files to ignore when committing your project to the GitHub repository. gitignore is located in the root directory of your repo. The .gitignore file itself is a plain text document. Hereβs an example .gitignore file : Copy # Binaries f...