how to cancel the push action ?

mc 5,426 Reputation points
2024-08-31T10:25:39.1866667+00:00

User's image

I pushed of main and then I found I delete file that I do not want how to cancel this.

I have not push it to github.

Developer technologies | Visual Studio | Extensions
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-08-31T21:36:43.6233333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    These articles help you to use git revert

    https://dev.to/moustymainer/undoing-a-git-push-how-to-revert-changes-made-by-a-push-d5p

    https://www.git-tower.com/learn/git/faq/restoring-deleted-files/

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.