Remove specific commit in Visual Studio 2022

37 Views Asked by At

In my .NET Core project using Visual Studio 2022, I have some pushed commits I want to remove specific commit from commit history without effect the commits pushed after this commit - is this possible?

I don't know if there a way except to do reverse the commits

1

There are 1 best solutions below

0
Richard On

Visual Studio does not provide such functionality; you need to use the git command line.

See the comments for a couple of references on how to do history rewrites.