Skip to content

Add abort command for git merge#152526

Closed
pkmnct wants to merge 2 commits into
microsoft:mainfrom
pkmnct:add-git-merge-abort
Closed

Add abort command for git merge#152526
pkmnct wants to merge 2 commits into
microsoft:mainfrom
pkmnct:add-git-merge-abort

Conversation

@pkmnct

@pkmnct pkmnct commented Jun 17, 2022

Copy link
Copy Markdown

This PR fixes #152525

I find myself often needing to abort a merge. I now know the command by memory, git merge --abort, but it is one of the few times I actually find myself running a git command in the context of VS Code. GitHub Desktop allows the user to hit a button to abort, so I wanted to see similar functionality in VS Code.

This PR introduces the Git: Abort Merge command in the command palette. Users can now simply run this command to abort an in-progress merge.

To test: Introduce a merge conflict to a git repository. Rather than completing the merge and solving the conflict, you can now open the command palette and abort the merge:

Screen Shot 2022-06-17 at 6 44 07 PM

The command has also been added to the source control menu:
Screen Shot 2022-06-17 at 6 44 44 PM

@ghost

ghost commented Jun 17, 2022

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@MaddyGuthridge

Copy link
Copy Markdown

Would love to see this merged!

@lszomoru lszomoru added this to the September 2022 milestone Aug 24, 2022
@lszomoru lszomoru added the git GIT issues label Aug 24, 2022
@lszomoru

lszomoru commented Sep 7, 2022

Copy link
Copy Markdown
Member

@pkmnct, thank you very much for your contribution.
I went ahead and implemented this feature building on your contribution.

@lszomoru lszomoru closed this Sep 7, 2022
@lszomoru lszomoru added the on-release-notes Issue/pull request mentioned in release notes label Sep 7, 2022
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues on-release-notes Issue/pull request mentioned in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add git merge --abort shortcut to command palette

3 participants