3 ms·
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 a
by paulddraper 8mo ago
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.)
- chrisweekly 8mo agohow do you commit a file without first adding it?
- JonathonW 8mo ago`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.
- chrisweekly 8mo agoRight... 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)
- wumms 8mo agoAlso, 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>