How to remove files from the GitHub repository?

后端 未结 2 753
悲哀的现实
悲哀的现实 2020-12-29 07:59

I deleted python .pyc files from my local repo and what I thought I did was to delete from remote github.

I pushed all changes. The files are still on the repo but

相关标签:
2条回答
  • 2020-12-29 08:39
    git commit -am "A file was deleted"
    git push
    
    0 讨论(0)
  • 2020-12-29 08:48

    You should not do git add. That's all

    git rm classes/file.pyc
    git commit -m"bla bla bla"
    git push
    
    0 讨论(0)
提交回复
热议问题