Re:Git ignores .gitignore with .gitignore in .gitignore
by naavis on Wednesday May 18, 2022 @12:04PM
(#31424424)
You could use `git add -p`
It lets you stage individual changes inside files instead of the whole file.
Re:Git ignores .gitignore with .gitignore in .gitignore
by throwawaylinux on Wednesday May 18, 2022 @05:47PM
(#31428075)
Right, I can do those things and sometimes do. Similarly to per-file I generally don't need to because I try to write and commit a logical change at a time.
I have no problem with people who do it some other way, it just seems odd to hear people proclaim a particular way to work with git is wrong, because it does not match how they work. Not sure if it's because they can't imagine any other way of working, or they just think all other ways are also wrong.
Adding individual files can help partition out some changes, but it's very rare for me, it's much more often I have to go back and manually shuffle sub-file changes around if I didn't get the splits right the first time.