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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:20:10+00:00 2026-06-01T12:20:10+00:00

That might be a naive git question but here it is: Before doing a

  • 0

That might be a naive git question but here it is:

Before doing a pull-request, I usually create a new branch from the latest commits in the upstream and cherry-pick the important commits from my development branch. Then make a pull-request from my new branch to the remote repository.

But I hate the merge-conflicts (although the git mergetool helps a lot when they occur). I suspect that some of those conflicts caused by the order of cherrypicks. I usually cherrypick a set of commits from oldest to newest commit. Is this the correct approach. Or commit order doesn’t matter for git?

Is there any other tricks for minimizing the merge conflicts during cherry-picking?

  • 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-01T12:20:12+00:00Added an answer on June 1, 2026 at 12:20 pm

    You should definitely cherry-pick commits in order. If you don’t, they may not apply – imagine that one commit adds foo.c, and the next one modifies it. Clearly they’re not going to work out of order. In general, even if it’s not that obvious, there’s some logical flow of development, and you don’t want to mess with it. That said, I’m not sure why you’re manually creating a branch and cherry-picking; it’s equivalent (as long as you’re not skipping commits) to git pull --rebase.

    If you’re getting merge conflicts when cherry-picking, it’s more a sign that your development process isn’t ideal. It means that the things you’re working on in your development branch are also being changed upstream. You might be able to help yourself out by either not working on the same code others are working on, or by more frequently pulling (probably pull --rebase, again) from upstream during development, rather than waiting until the very end.

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

Sidebar

Related Questions

My question might sound a bit naive but I'm pretty new with multi-threaded programming.
This question might look naive, but I couldn't understand this code in the ViewModelLocator.cs
It might be a very naive question but i am a bit stuck. I
I am going to ask a question that might sound weird. Is there a
im planning to create a movie file that might have over 16,000 frames?i know
This might sound naive, but... class Widget { public int Foo { get; set;
The question might sound pretty naive, ut this is really troubling me. I am
This might be a way too generic question, but what is the general approach
I have a query that might be executed by several users consecutively. I'm scared
I have a function that might fail, so the value it returns needs to

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.