how to cancel the push action ?

mc 4,436 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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
212 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vahid Ghafarpour 21,160 Reputation points
    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.