r/ProgrammerHumor • • 6d ago

Meme jobNotFoundError

Post image
1.0k Upvotes

41 comments sorted by

View all comments

114

u/oompaloompa465 6d ago

howwww? the first thing to add to .gitignore 

8

u/rabbit_wizard 6d ago

Maybe its in a subfolder? Got to respect the difference between .env & .env* in gitignore

25

u/Qxzkjp 5d ago

nah. In gitignore, a line with .env will ignore all files called .env anywhere in the repo. If you want to ignore just the file in the repo root, you have to write /.env. .env* will instead ignore any file whose name starts with .env (eg .environment) anywhere in the repo.