Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Git Cherrypick

In order to push any specific feature from a dev branch to the main/deploying branch, we use the git cherrypick feature.

Suppose I've created two html files respectively with names as Feature1.html and Feature2.html and committed them separately just in order to create two different commits in the local dev branch.

Now in local create a new branch with name cherry/stage and switch to it, now type the below command in order to cherry pick any one of the commits in order to select the required feature you want to promote into the cherry branch and eventually into the main branch from the cherry/stage branch.

git cherry-pick <commit id>

About

Small example on how to use git-cherrypick feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages