Remove .pyc files from Git remote repository

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

    1. Remove .pyc files using git rm *.pyc. If this not work use git rm -f *.pyc
    2. Commit git commit -a -m 'all pyc files removed'
    3. Push git push
    4. In future commits you can ignore .pyc files by creating a .gitignore file

提交回复
热议问题