How to delete commits from git on Github and Bitbucket

后端 未结 2 450
挽巷
挽巷 2021-02-02 12:22

I accidentally pushed up files from my .idea directory in my Django project which I had in my .gitignore file. I am trying to completely delete the commit from my bitbucket repo

2条回答
  •  被撕碎了的回忆
    2021-02-02 12:26

    Even if the commits are HARD reset, unwanted commits would still show up in the history. If the history also needs to be reset, then I am afraid only way to do that is to delete and recreate the branch.

提交回复
热议问题