1

I have a folder for my virtual environment on my local that were pushed to my git repo before I set up my .gitignore file.

How can I remove the folder from the git repo but leave it on local?

william tell
  • 4,352
  • 6
  • 23
  • 27

1 Answers1

0

Found the answer here:

For single file:

git rm --cached mylogfile.log

For single directory:

git rm --cached -r mydirectory
william tell
  • 4,352
  • 6
  • 23
  • 27