Remove .pyc files from Git remote repository

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

    Because in default Bitbucket, there is no .gitignore file in the repo,so you can do :

    1. you can create local .gitignore(should not be pushed) and add *.pyc as a line;
    2. you can copy the .gitignore in Github repo and add *.pyc as a line in this file! You can push it or keep it in your local repo!

提交回复
热议问题