Thuta Learning
Git
AdvancedDevOps & ToolsBeginner

.gitignore

GitLesson 18

.gitignore file is a text file that tells Git which files or folders it shouldn't track — for example, log files, build outputs, and sensitive information.

bash
# Create a file named .gitignore
# Log files
*.log

# Node.js dependencies folder
node_modules/

# macOS system file
.DS_Store
You should see
(Files/folders listed in this file won't get staged by the git add . command)

Updated on

Progress is saved only in this browser on this device. It isn't synced to other devices.

Report a problem with this lessonOpens your email app with this lesson's address filled in — nothing is sent until you send it.

.gitignore | Thuta Learning