🚫 Understanding .gitignore (What to Keep OUT of Git)
A .gitignore file tells Git which files or folders to ignore.
Use it to avoid committing unnecessary files like logs, build artifacts, or sensitive info.
📌 Common Use Cases
Ignore node_modules/ for JavaScript projects
Ignore *.log files (logs)
Ignore IDE config folders (e.g., .vscode/, .idea/)
Ignore temporary or compiled files (*.class, *.exe, *.tmp)
⚡ Pro Tip: Keep your repo clean — only commit files necessary for the project to run.
📚 Example .gitignore
Simulation output will appear here...
💡 Tip: After adding a .gitignore, if files were already tracked, use git rm --cached filename to remove them from Git.