C
C#4mo 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
Jimmacle4mo ago
did you already commit them before adding them to your gitignore?
Mathall
MathallOP4mo ago
yes i think so
Jimmacle
Jimmacle4mo ago
gitignore doesn't apply to already tracked files, so you need to delete them from the repo
Mathall
MathallOP4mo 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
Jimmacle4mo 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
MathallOP4mo ago
so straght from the IDE? sorry
Jimmacle
Jimmacle4mo ago
or your file explorer
Mathall
MathallOP4mo ago
ok i see, thanks ok, thanks I appreciate it
Jimmacle
Jimmacle4mo ago
:pepeOK: $close
MODiX
MODiX4mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Mathall
MathallOP4mo ago
ok got it all setup thanks
Want results from more Discord servers?
Add your server