Remove .pyc files from Git remote repository

前端 未结 10 701
广开言路
广开言路 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:05

    To remove all .pyc files use git rm -rf *.pyc

    Then add the *.py[co] to your .gitignore file. (This will prevent .pyc and .pyo files from getting committed in the future commits)

提交回复
热议问题