Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cherry pick using TortoiseGit

How do I run the cherry pick command using TortoiseGit UI?

like image 388
antonjs Avatar asked Oct 21 '22 20:10

antonjs


People also ask

How do you cherry pick a commit from another branch using TortoiseGit?

Cherry-picking in TortoiseGit is invoked from the Revision Log Dialog. Within this dialog, select the commit(s) to cherry-pick, then right-click on one of the selected commits to pop up the context menu. Select Cherry Pick this commit... (or Cherry Pick select commits... if more than one commit is selected).

What is TortoiseGit used for?

TortoiseGit is a free open-source client for the Git version control system. That is, TortoiseGit manages files over time. Files are stored in a local repository. The repository is much like an ordinary file server, except that it remembers every change ever made to your files and directories.

How do you use the cherry pick command?

Cherry picking is the act of picking a commit from a branch and applying it to another. git cherry-pick can be useful for undoing changes. For example, say a commit is accidently made to the wrong branch. You can switch to the correct branch and cherry-pick the commit to where it should belong.


1 Answers

  1. Open the log in a repository with the target branch checked out.
  2. Use the top-left blue branch name to select the source branch.
  3. Select the commit(s) you want.
  4. Right click and select Cherry Pick this commit.
like image 179
vpatil Avatar answered Oct 24 '22 09:10

vpatil