Most of the colleagues I've worked with only use "git add ." without checking first.
Keys, npm directories and huge binaries are fixed by deleting them later on. The horror.
> Keys, npm directories and huge binaries are fixed by deleting them later on. The horror.
Keys that are deleted are not gone from the git history. They’re still in the repo.
Same with giant blobs and binaries.
Genuinely curious - do you all not have a code review process, or do the reviewers just not care?
Secrets shouldn't be plain text in project directory >:[
> Most of the colleagues I've worked with only use "git add ." without checking first.
I mean I do too, then git status to check what went it, then unstage files that aren't supposed to be there, rewrite .gitignore to exclude them (usually), and finally commit. Tends to be faster than manually adding each file/path. Alternatively, I start out with `git add -p` (interactive) and go through that workflow.
The problem is that those developers are also going to forget to update the ignore-by-default .gitignore to allow files, so there will be missing files. And they won't see any problems, because it works on their machine.