Remove .pyc files from Git remote repository

前端 未结 10 903
广开言路
广开言路 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 11:06

    another liner for fun to remove all the pyc files.

    find . -name '*.pyc' -exec git rm {} \;

    don't forget to follow the steps in other answers to commit and add gitignore.

提交回复
热议问题