Earlier quoted context omitted.
[deleted]
What project is using .gitignore but not git?
.gitignore Is Inherently Sisyphean
41–50 of 68 posts
Re: .gitignore Is Inherently Sisyphean
#42Re: .gitignore Is Inherently Sisyphean
#43I have never once experienced this problem. Mostly because I don't work with people who blindly commit everything without even looking once to see what's in their commit.
Interns and new hires sometimes need a quick chat about actually looking at their changes before asking for a review, but that's about it in my experience. I guess it could be a problem for a project which accepts a large number of public PRs from mostly non-technical or beginner users?
Re: .gitignore Is Inherently Sisyphean
#44Allow /deny list, hope that helps.
Re: .gitignore Is Inherently Sisyphean
#45I did think the blacklist for this purpose was a bad idea anyways, before I saw this, so I used whitelist anyways already. (However, you can use which way you prefer, in case you do not like this, either.)
Re: .gitignore Is Inherently Sisyphean
#46I have never once experienced this problem. Mostly because I don't work with people who blindly commit everything without even looking once to see what's in their commit.
Re: .gitignore Is Inherently Sisyphean
#47Of course there is .git/info/exclude, but I'm not sure it's working an already cached (present on remote) files. This is another common use case git handles badly - local changelist. For example having .env file on remote with variable names only to denote structure and filling those out in local without showing these modifications in staging.
Re: .gitignore Is Inherently Sisyphean
#48Earlier quoted context omitted.
[deleted]
What project is using .gitignore but not git?
Re: .gitignore Is Inherently Sisyphean
#49Ideally people who have .DS_Store, .vscode, etc. would put them into their own $GIT_DIR/info/exclude files and not pollute the shared .gitignore with stuff from their personal setup.
I've found that reducing the friction, as much as possible, is the only way to get people to actually contribute. Excluding things like .vscode and .DS_store, which is a common and universal "don't need that in my repo", is a trivial way to reduce the burden for everyone (the goal of software, imo), maintainer included.
I’m old and cranky enough to want to believe that excluding contributions from VS Code and macOS users is a trivial way to reduce the maintainer’s burden and improve software quality.
That’s completely unfair, of course, and probably false too.
edit: s/maybe/probably/
Re: .gitignore Is Inherently Sisyphean
#50This isn't a terrible way to go about things. I normally add .*/ to the gitignore. Most crap I don't want is a hidden directory. It's easy to whitelist a few bad actors, and the gitignore stays pretty short.
this really should be git's default, with a warning on git init . They decided to waste the default warning with a wrist-slap for using "master"
I think that one can eliminate that by adding this to /etc/gitconfig, ~/.config/git/config or ~/.gitconfig as appropriate:
[init]
defaultBranch = master