Remove .pyc files from Git remote repository

前端 未结 10 729
广开言路
广开言路 2021-01-30 10:37

Accidentally, I have pushed the .pyc files to the master repository. Now I want to delete them but I can´t do it. Is there any way to remove them directly from the Bitbucket sit

10条回答
  •  滥情空心
    2021-01-30 10:51

    git rm *.pyc --cached
    git commit -a -m'remove pyc from index'
    git push
    

    PS: I see the date of question, but this solution looks better, imho. May be it'll help someone.. .

提交回复
热议问题