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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:42:59+00:00 2026-06-18T22:42:59+00:00

I have created a pull request on Github. I have 2 commits in the

  • 0

I have created a pull request on Github. I have 2 commits in the pull request. How (if it is possible) can I merge only the first commit, and then create a second pull request for the second commmit.

Ex:
I have a pull request with commits A and B (in that order. B is latest commit). I want to merge only A with one pull request, and then create a separate pull request to merge B. How can this be done.

  • 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-18T22:43:00+00:00Added an answer on June 18, 2026 at 10:43 pm

    Person A has repo A. Person B forks repo A to repo B with the intent of fixing issue 42. Person B creates branch issue42 on repo B, hacks on the issue, and commits it. Person B creates a pull request to person A on repo A for branch bug42.

    Now, Person A sees the pull request consists of two commits C1 and C2 and decides they only want C1.

    Here, the right thing to do is for Person A to ask Person B to amend their pull request so it only contains C1. This preserves history correctly. So Person B can do something like

    git branch bug42_c1 bug42^ # create new branch bug42_c1 on the ancestor of the tip of branch bug42
    

    Now Person B can submit a pull request for branch bug42_c1.

    Hopefully this is a correct understanding of your question. If it is not then consider looking at my answer and seeing how to rephrase your question for increased clarity.

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

Sidebar

Related Questions

I have created a dialog and got a problem that only part of the
Is there any way possible to say, have A.swf use only certain items from
I need to download a queue of images. I created my operations first, then
I have a clone of a repo on Github in which I created a
Situation: We have a couple of github pull requests that have been merged that
I'm not sure, but I have a vague memory of creating a github pull
I have a public repository on github that I'm having trouble handling pull requests
I have make pull request on git (with xcodeproj/project.pbxproj file - my fault), so
Basically, I have an open pull request that I want to fix and at
I have a repository on GitHub located here . I created a working branch

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.