git cherry-pick and git archive commands

Let’s learn git cherry-pick and git archive commands.

1. What is git cherry-pick

This command is the most important command in your programming life. You can pick any commit from your branch that you want to merge with any other branches

git cherry-pick [COMMIT-HASH]

git cherry-pick doesn’t change or modify repository history. git cherry-pick does only adds to the history.

2. What is git archive

If you want to combine your multiple files to a single file, this is the command for that.

git archive –format zip HEAD >

This will create a zip.

Related Git commands and Tutorials.

Thank you for reading. If you are interesting on my article, make sure to follow my other articles as well. Make sure to leave a comment.

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x