avatar

目录
How to DELETE GitHub COMMITS
  1. Checkout
git checkout --orphan latest_branch
  1. Add all the files
git add -A
  1. Commit the changes
git commit -am "commit message"
  1. Delete the branch
git branch -D master
  1. Rename the current branch to master
git branch -m master
  1. Finally, force update your repository
git push -f origin master
文章作者: 坂本先生
文章链接: https://bugbugsurvival.github.io/posts/how_to_delete_github_commits.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 東雲研究所