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


Oldest comments (2)

souibguimohamed profile image
Mohamed Souibgui

Thank you Indra for sharing

bukanspot profile image
Indra Wahyu

Yes, of course ๐Ÿ˜Š

18 Useful Github Repositories Every Developer Should Bookmark

18 Useful GitHub repositories every developer should bookmark: everything from learning resources and roadmaps to best practices, system designs, and tools.