So, I tried making a new project and using BitBucket. I wanted to push my newly created project to the repository. However somehow my .vs and my packages folders got commited as well. I was too late with adding my .gitignore file and also It still commits the .vs file. Could anyone help me please?
Thank you

How can I remove those files from my repository and prevent this from happening in the future?
Here's a proper answer.
.vs to .gitignore this will prevent it getting re-added again..vs from the git index but leave it on your file system. git rm -r --cached .vs.gitignore. git commit .gitignore.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With