0
My situation is this: I created a project, I went up on github and after a long time, I realized that I went up the folder node_modules
, and I don’t want her there. I created the .gitignore
and add the folder there, but still, keep trackeando. I’ve done the classic:
git pull origin master
git rm -r folderName
git commit -m "rm folderName"
git push origin master
and it didn’t work. I also tried:
git rm -r --cached .
git add .
git commit -m "rm ignored files"
but also without success. I just don’t delete file by file inside github because it would be unviable, and I wouldn’t want to start a new repository again because commits are for job interview logging.
It worked here, thank you very much! What I needed to do the most was switch to the master branch before, I forgot to mention this detail :)
– Claudio Henrique