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 9075617
In Process

The Archive Base Latest Questions

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

I have two brances namely master and development . All the development will be

  • 0

I have two brances namely master and development .
All the development will be done inside the development branch and will be merged with master for the build .

I checked out master branch and cherry picked 5 commits belonging to the development branch and pushed it to the master remote repository .

All these things went fine .

git checkout master 
git status
git cherry-pick a7644fc2bc7b09fe88cb1cbb75e0547dd1d7321d
git cherry-pick 335bf121a6aa7bc1e334b94d1a742b0f9ecfb9b6
git cherry-pick 5dee244a47d0346d5080ecd34984683c8f442c93
git cherry-pick 9f8fe22b346ba80089126afbf29ac063ea7b9b32
git cherry-pick 5dee244a47d0346d5080ecd34984683c8f442c9h
git push

Now my reqirement is that i need to remove one of the cherry pick from the master to do the build .

I am not sure , but when i googled i found these two commands

git revert --strategy resolve

git rebase 

Please let me know how can i remove a particular commit from the master branch

Updated Part

When i did git revert 564d01c3870ca5a55b171fc6f061e0cc2a8f4879 this screen came up , can i avoid this ??

enter image description here

  • 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:54:06+00:00Added an answer on June 16, 2026 at 6:54 pm

    Use git revert <commit>. If you do not want the editor to popup use --no-edit option. If you do not want to actually commit the revert, just apply it to your working directory, use the --no-commit option.

    If you only pushed to controlled repository and you positively know nobody pulled from it then you can do some git reset --hard <commit>^ and then re-cherry-pick the commits you actually want. But this is not recommended.

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

Sidebar

Related Questions

I have two branches namely master and development in a GitHub Repository. I am
I have two branches namely master and development . I need to pick only
I have two branches: master and bug1. I checked out bug1, did bunch of
I have two SVN branches checked out, b1 and b2. I would like to
I have two branches: master and dev I want to create a "feature branch"
I have two service pack branches coming out of one ‘main’ branch in TFS
I have two branches master and exp i tried to cherry pick some of
I have two branches with several commits each. On one branch, I can go
I have two branches I normally work on: master and homepage_buildout. I was recently
Given that two branches have diverged and a specific commit from one branch (and

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.