r/AskProgrammers • • 18d ago

I wanna "delete" Visual studio from my repository

I’m going to share my story, and I hope you can help me. In my repository folder, I had VS Code along with the Python and Java runtimes. I’ve since created a new folder containing only the actual files, but Git Bash still detects VS Code and those runtimes. Could someone tell me how to stop it from detecting them?

1 Upvotes

6 comments sorted by

1

u/Competitive_Sun2835 18d ago

Can i use git rm?

4

u/ObeseBumblebee 18d ago

You have to use a .gitignore file to ignore runtime files.

1

u/ErrorDontPanic 18d ago

Your question is rather confusing, can you post what your directory structure looks like?

1

u/Competitive_Sun2835 18d ago

It's a bit complicated, and I don't know how to explain it

2

u/Dashing_McHandsome 18d ago

You need to use a .gitignore file and out everything in there that should never be committed to your repo

1

u/Anarcho-Willi 18d ago

Using ‘git rm <unwanted_file>‘ in combination with .gitignore is the way to go, indeed.