Git cherry picking
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY fazeela.ma
4 years ago
Git
0 comments comment

Git is a control system for developing softwares. There are a number of git commands (Git reference). While searching bringing a commit from one branch to another, I came across an interesting topic called cherry picking. Cherry pick a commit? Sounds interesting!!!

I have researched a bit to let know whether it would fit my context or not.

Git Cherry pick

This command is those cases, where we wanted to bring the commits from a particular branch to another. General syntax for cherry picking a particular commit is,

git cherry-pick commit_hash_id

Let us consider we have 3 branches as A, B, and C along with a master. Suppose, we would like to bring the last commit from branch C to B. In this case, make sure that we are the branch were we would like to bring the commit to. In this scenario, make sure you are on branch B, as we are planning to bring the commit from C to B.

Now, a question can arise for those who is not very good with git. Don't we mention the branch from were the git commit to be taken? Nice question!!

Why we need to specify that, as the hash code for every commit is unique. So we don't want to mention the branch from where we take commit. Git is an interesting software to explore, every day we see new commands to get the new functionalities integrated to it.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 01st March 2012 / by Anto
So what is this whole article about? Good question!!! Well this one is on Git. And before you ask the obvious next question, let me assure you, Git is not another unwieldy acronym. It is just another meaningless name that arose from the mind of one ‘funny’ man - Linus Torvalds - the creator of Linux .For want of another "creative" name,he coined "Git",or ,so we presume... Web Development Drupal Git Version Control System Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
close

on 01st June 2012 / by sujith.s
When a server is managed by more than one admin, it’s always a challenge to keep track of the changes made to the configuration. And when in a multiserver environment managed by more than one admin, this is going to be more complex. It would have been much saner if there was a utility to handle all this. The ones that we found were quite complicated and was made for handling huge numbers. All we wanted was a very simple utility to do just the job, without much bells and whistles. And so, we started out on our own. Here’s what we have now. Linux System Administration Server Administration Git Version Control System Leave a reply Your email address will not be published. Required fields are marked * Anonymous (not verified) access_time 21 Oct 2019 - 15:17 Thanks it is exactly what I'm looking for. Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
close

on 31st July 2012 / by Anoop John
If you own a VPS or a dedicated server or a hosting server which allows you to have shell access then you can easily set up your own git server with as many users and as many repositories as can be stored in the space on your server. All you need to do this is a bit of system administration skills and a hosting server that allows you shell access. Read on to see how you can set up your own git server. Linux Server Administration Git Version Control System Leave a reply Your email address will not be published. Required fields are marked *
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.