C
C#5mo ago
Mathall

✅ how to add certain folders to .gitignore

Hey all i'm trying to add my .vscode, bin, and obj file to my .gitignore, but for somereason they will not go away even when i have
#
obj/
.vscode/
bin/
#
obj/
.vscode/
bin/
in the .gitignore file, any help would be appreciated oh heres the repo https://github.com/Mathall003/WordleGame/blob/main/.gitignore
GitHub
WordleGame/.gitignore at main · Mathall003/WordleGame
Contribute to Mathall003/WordleGame development by creating an account on GitHub.
11 Replies
Jimmacle
Jimmacle5mo ago
did you already commit them before adding them to your gitignore?
Mathall
MathallOP5mo ago
yes i think so
Jimmacle
Jimmacle5mo ago
gitignore doesn't apply to already tracked files, so you need to delete them from the repo
Mathall
MathallOP5mo ago
oh, how would I go about that, can i do that from github or do i have to go into the source control sidebar
Jimmacle
Jimmacle5mo ago
just delete them like you would any other file back up anything you actually want to keep in a different folder and put it back after committing the deletions
Mathall
MathallOP5mo ago
so straght from the IDE? sorry
Jimmacle
Jimmacle5mo ago
or your file explorer
Mathall
MathallOP5mo ago
ok i see, thanks ok, thanks I appreciate it
Jimmacle
Jimmacle5mo ago
:pepeOK: $close
MODiX
MODiX5mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Mathall
MathallOP5mo ago
ok got it all setup thanks
Want results from more Discord servers?
Add your server