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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:33:22+00:00 2026-05-25T22:33:22+00:00

I have two branches devel and next . In devel I have a more

  • 0

I have two branches devel and next. In devel I have a more or less huge amount of commits. Some of the commits are cherry picked in next. Also I added some commits to next which are merged to devel.

Now I would like to see what is missing in next, so I can test the changes in detail before bringing them to next. My question is now, how can I see which commits are in devel but not in next?

  • 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-05-25T22:33:23+00:00Added an answer on May 25, 2026 at 10:33 pm

    The little-used command git cherry (docs) shows you the commits which haven’t yet been cherry-picked.

    In short:

    git cherry <feature-branch> [base-branch]
    
    # Checkout the base branch
    git checkout main
    
    # Diff against the target branch
    git cherry -v next
    
    # Diff against the target branch, without switching
    git cherry -v next main
    

    Example output:

    + 492508acab7b454eee8b805f8ba906056eede0ff feat: make bazzable
    - 5ceb5a9077ddb9e78b1e8f24bfc70e674c627949 hotfix: off-by-one
    + b4459544c000f4d51d1ec23f279d9cdb19c1d32b feat: add bar
    + b6ce3b78e938644a293b2dd2a15b2fecb1b54cd9 feat: add foo
    

    + means the commit is only in next, but not in main
    - means the commit has an equivalent in both branches

    Remove the -v if you want the commits without the subject line:

    + 492508acab7b454eee8b805f8ba906056eede0ff
    - 5ceb5a9077ddb9e78b1e8f24bfc70e674c627949
    + b4459544c000f4d51d1ec23f279d9cdb19c1d32b
    + b6ce3b78e938644a293b2dd2a15b2fecb1b54cd9
    
    • 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 with several commits each. On one branch, I can go
I have two git branches, A and B, and commits numbered 1 thru 8.
Lets say I have two branches in RepoX called BranchA and BranchB. RepoX also
I have two branches in local. Staging and master. There are some changes already
I have two branches: trunk, production. I have found a problem in trunk, made
I have two branches I normally work on: master and homepage_buildout. I was recently
I'm running SourceSafe and I have two branches of my code. I'm currently using
Imagine the following situation: I have two branches: DEV and MAIN. I'm working on
I have two SVN branches checked out, b1 and b2. I would like 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.