Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9073631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:27:39+00:00 2026-06-16T18:27:39+00:00

I have two branches namely master and development . I need to pick only

  • 0

I have two branches namely master and development .
I need to pick only some certain commits from the development
branch and merge them to the master .

I tried to use git cherry-pick , but not sure if i am doing it right way

Do i need to cherry pick a400452d64 OR a7644fc2bc7b09fe88cb1cbb75e0547dd1d7321d
Please see the image

enter image description here

i have followed the below approach .

git checkout master 

git pull

git cherry-pick a400452d64

OR

git cherry-pick  a7644fc2bc7b09fe88cb1cbb75e0547dd1d7321d

git commit -m "My Commit"  # Is this necessary ??

git push -u origin master   # Is this necessary ??

Please let me know if i am doing anything wrong ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:27:40+00:00Added an answer on June 16, 2026 at 6:27 pm

    The “Parent” commit is the one before that commit, so the ‘commit’ hash is the one you want to use. For the avoidance of doubt you can do:

    git show a7644fc2bc7b09fe88cb1cbb75e0547dd1d7321d
    

    and check it’s the right commit before you do it:

    git checkout master
    git pull
    git cherry-pick a7644fc2bc7b09fe88cb1cbb75e0547dd1d7321d
    git push
    

    Specifying the origin on the push is probably not necessary if the upstream is configured correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two branches master and exp i tried to cherry pick some of
I have two branches namely master and development in a GitHub Repository. I am
I have two branches with several commits each. On one branch, I can go
Given that two branches have diverged and a specific commit from one branch (and
I have two brances namely master and development . All the development will be
I have two branches in my Git repository: master seotweaks (created originally from master
We have two branches. One is a Release Branch (RB) taken from the trunk.
I have two branches: master and dev I want to create a "feature branch"
I have two branches in local. Staging and master. There are some changes already
I have two branches, master and dev. I always work on dev and only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.