2/22/2026 at 7:13:20 PM
> GitHub, GitLab, and Gitea all respect .gitignore and won’t show ignored files in the web UIIs this right? These tools don't show ignored files because they aren't part of the repository. If a now-ignored file has made it into the repository, surely you want to see it?
by masfuerte
2/22/2026 at 7:34:11 PM
Not true, you can push a file and later gitignore it and it will remain visible on those UIs. It's still part of the repo.Doing it the other way around is also possible but harder as the git client will refuse but can be convinced.
by silverwind
2/22/2026 at 7:38:59 PM
Yeah this is wrong.They will show the files in your repo.
gitignore just decides whether untracked files appear as new or ignored. (But you can commit them anyway if you are so inclined.)
by paulddraper
2/22/2026 at 8:02:30 PM
how do you commit a file without first adding it?by chrisweekly
2/22/2026 at 8:06:25 PM
`git add -f` will add ignored files. Once you've done that, any files you've added will be part of your commit regardless of the contents of .gitignore.by JonathonW
2/23/2026 at 9:26:05 AM
Also, files that are added to .gitignore after they’ve already been committed will still appear as modified. To stop tracking them, you need to remove them from the index (staging area): git rm --cached <file>
by wumms
2/22/2026 at 8:11:55 PM
Right... and also (I think; unsure bc I only ever use cli) some GUIs (eg github.com web ui) may enable adding files that'd otherwise be ignored.(shrug)
by chrisweekly
2/23/2026 at 7:14:04 AM
would be nice, if there's a modifier in there, which says showinwebui=(true|false) :Dby deknos
2/22/2026 at 9:37:48 PM
Yeah, also that's probably not the kind of error a human writing this post would make... I stopped reading at that pointby wheybags
2/22/2026 at 10:40:05 PM
This is exactly the sort of error that a human with a slightly incorrect mental model for something makes all the time.by plorkyeran