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


Latest comments (2)

souibguimohamed profile image
Mohamed Souibgui

Thank you Indra for sharing

bukanspot profile image
Indra Wahyu

Yes, of course 😊

Advice For Junior Developers

Advice from a career of 15+ years for new and beginner developers just getting started on their journey.