6. .gitignore and secrets

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 6

.gitignore and secrets

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • Tell Git which files to ignore with a .gitignore file.
  • Write the five most common ignore rules.
  • Check what Git ignores with git status and git check-ignore -v.
  • Keep secrets in a .env file and share a safe .env.example.
  • Stop tracking a file you committed by mistake with git rm --cached.

45 minutes Lesson 6 of 12

Everything in GitHub

  • 12 step-by-step lessons
  • 2 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account