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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:11:37+00:00 2026-05-23T03:11:37+00:00

I am having an issue with rebasing from master on to a ‘deploy’ branch

  • 0

I am having an issue with rebasing from master on to a ‘deploy’ branch within one of my repositories.

My repo is setup as follows:

master - of course, the main branch
deploy - a branch created where files like Capfile, deploy.rb etc are created and configured - these changes will NEVER be merged back into Master

Generally my workflow is:

  1. Do development on the master branch… test, smile, commit.
  2. Checkout the deploy branch
  3. Execute git rebase master on the deploy branch – this used to work without a problem
  4. Push to remote and then execute cap deploy
  5. Relax

The problem I am now having is that when I execute git rebase master on the deploy branch it is coming up with a 3-way merge/manual merge required error (I don’t think the error message is really generic enough to post). Git tells me to perform a merge then use git rebase --continue to finish – which never works.

What I have found ‘does’ work is running git rebase master --interactive, cleaning up the pick list (there is 5 or so repeated ‘commits’ but with different reference numbers (same message) in this list, so I’ll choose one of them) and then manually do the merge. Once I have done this for each commit then I can continue the rebase and its all happy…

Until next time I need to perform a rebase.

So does anyone know what might be happy? The project isn’t really ‘secret’ so if need be I can post messages, logs, branch graphs etc.

Thanks

  • 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-23T03:11:38+00:00Added an answer on May 23, 2026 at 3:11 am

    What sounds like it might be happening is that you have changed the commit history of those “repeated” commits such that they have a different sha1. Each sha1 is unique to not only the commit, but the commit history. Hence, it’s impossible (well, highly improbably to happen during the lifetime of the universe), to have two identicial sha1 in the same history or to have two sha1 in two different histories even. If you change anything in your commit, such as with an amend or interactive rebase, then you will change the sha1. So two commits that might look the same, are actually treated differently.

    So very likely, you rebased from the other branch, did some type of interactive rebase or amended the commits, continued to commit some more code that modified that same part of the code, then on the next rebase you have conflicts because the commits that you have in your local branch that differ from the branch you are rebasing from are removed from the branch, the upstream is pulled in including that commit you’ve already pulled in and changed the sha1 of, and then when the commits are replayed onto the branch you end up with a conflict because the state of the code has changed from what the commit was expected because it was original created from a different history than what you now have on your branch. Wow, that was a long sentence…

    When you’re “cleaning” up the pick list… what you are doing is likely deleting these repeated commits before rebasing, so now you’re not reapplying changes that have already been applied, so no more conflicts.

    However, if you just wanted to resolve the conflicts during the rebase, this would likely be the best bet so you don’t accidently delete a commit that you want. Resolving the conflicts will make the change set of that commit different an applicable to the history you have. Once you push this merge conflict resolution, you shouldn’t see the issues again unless you modify commits that have already been pushed again.

    To find which files have the merge conflicts do:

    git status
    

    or

    git ls-files -u
    

    Once you know which files have conflicts, if you have a mergetool setup you can do:

    git mergetool <file>
    

    If you’d rather merge manually, you can find the merge markers and lines by doing:

    grep -Hnr '^=\{7\}\|^<\{7\}\|^>\{7\}' *
    

    at the top level of your repo path and edit. When you edit manually, make sure you remove the markers and make the final version of the file look like how you want it to… git doesn’t do anything special with the markers for you. When you’ve finished editting manually, make sure to do

    git add <file>
    

    to add the file to add it to the index and remove the unmerged flag. When you are done resolving all unmerged files, do

    git rebase --continue
    

    To complete the rebase.

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

Sidebar

Related Questions

Having an issue, here is the problem. Created a branch from the trunk, made
I'm having an issue with expressions within reports. I'm coloring the background of a
I'm having an issue dragging a file from Windows Explorer on to a Windows
I'm having an issue setting up one of my projects in TeamCity (v4.0), specifically
I am having issue when sending data from Service to Activity through Notification ,
I am having issue with git pull.I have commited my changes in local repo.
Having another issue, and this one is BAFFLING! Here we go. We have a
I having an issue from my HTTP Post. The code I'm using are working
I'm having an issue with a query that currently uses LEFT JOIN weblog_data AS
I'm having an issue with my regex. I want to capture <% some stuff

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.