How to use GitHub Desktop to delete an incorrect submission

if there is a question, can you answer it?

May.27,2022

git delete an error submission from a remote warehouse?


deletion is not supported if it has been pushed remotely.
if you are doing a delete operation, you need to do its reverse operation again, that is, add the file you deleted, and then push it remotely.


  1. reset to the time before the error is submitted
  2. checkout new branch from reset point in time
  3. Delete the original remote branch
  4. push new branch to remote with the same name as the original branch
Menu