New
Create a .gitignore Before the First Commit
Keeps dependencies, build output, secrets and editor files out of the repository.
Ignoring a file does nothing once it is already tracked. If .env was committed before you added it here, remove it from tracking with git rm --cached .env and treat the secret inside as leaked.
When you need this: Immediately after git init, before anything is staged.
Command
2 views
0 copies
Related in this category
Log in to save
Free account. Save snippets into your own collections.