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 for programs and plugins *. exe *. exe