0

I need to:

  • Keep the last commit made to a Pull-Request.
  • Remove the two commits prior to a Pull-Request.

In Team Explorer in Visual Studio 2019:

  • I go to Team Explorer.
  • I go to Branches.
  • I right-click my local branch to bring up the local history.
  • I right-click a commit that I would like to remove.

There is an item in the context menu: "Cherry-Pick". Does "Cherry-Pick" select a commit that I want to keep or select a commit for removal?

Would the "Reset | Delete Changes (--hard)" be a way to remove a specific Commit?

The Git terminology is somewhat vague and opaque.

Doug Kimzey
  • 1,019
  • 2
  • 17
  • 32
  • (Simple note : git terminology is quite clear. Blame VS Studio if something is unclear in their UI.) – Romain Valeri Oct 22 '20 at 15:28
  • 1
    https://www.google.com/search?q=git+cherry-pick – Marco Bonelli Oct 22 '20 at 15:44
  • https://git-scm.com/docs/git-cherry-pick – phd Oct 22 '20 at 15:51
  • Thanks all - the "What does cherry-picking a commit with Git mean?" is useful. I think I need a good Git guide that explains the direction (where changes are coming from and going to). The problem I run into is that the documentation for one ambiguous Git command is explained in terms of other vague Git commands. Git issues like the one that I am working through take far longer to resolve than the time required to make my code changes. – Doug Kimzey Oct 22 '20 at 16:02

0 Answers0