Re:Git ignores .gitignore with .gitignore in .gitignore
by AndrewThrowaway on Wednesday May 18, 2022 @04:58AM
(#31420590)
The only problem I can see it "leaking" some information?
"I see this guy has 'passwords/'" on his local machine, let's somehow sneakily merge new .gitignore to make them available publicly.
Re:Git ignores .gitignore with .gitignore in .gitignore
by asddubs on Wednesday May 18, 2022 @05:31AM
(#31420735)
sure, if "this guy" does "git add '*'" and neither reviews the commit, nor even does git status to see a file list of it and just pushes it straight to remote. if that's happening i think your repo might have other problems though
Re:Git ignores .gitignore with .gitignore in .gitignore
by pcthrowaway on Wednesday May 18, 2022 @11:06AM
(#31423718)
I mean this doesn't really leak anything; passwords are usually stored in `.env` files anyway
Re:Git ignores .gitignore with .gitignore in .gitignore
by naavis on Wednesday May 18, 2022 @12:07PM
(#31424453)
It's not exactly best practice to store passwords in version control.
Re:Git ignores .gitignore with .gitignore in .gitignore
by pcthrowaway on Wednesday May 18, 2022 @12:35PM
(#31424802)
yes I'm aware.. this is why .env should always be in .gitignore
Things like:
etc.I don't really see the downside to just adding them to the tracked gitignore. If other people have a different convention and want to add these files/paths for some reason, it's easily discoverable to them why the files can't be added, and then we can have a discussion about what naming conventions we want.