how to cancel the push action ?

mc 6,196 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
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vahid Ghafarpour 23,585 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.