DEV Community

Indra Wahyu
Indra Wahyu

Posted on • Updated on

Clear Cache After Create .gitignore

My Problem

I commit and push venv to github and I want to remove them from Github

My Solution

Use This code

git rm -r --cached venv
git commit -m 'Remove the now ignored directory "venv"'
git push origin master
Enter fullscreen mode Exit fullscreen mode

Reference

Top comments (2)

Collapse
 
souibguimohamed profile image
Mohamed Souibgui

Thank you Indra for sharing

Collapse
 
bukanspot profile image
Indra Wahyu

Yes, of course 😊