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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:04:17+00:00 2026-05-26T00:04:17+00:00

Overview: $ git pull … time passes … $ git checkout topic # remote

  • 0

Overview:

$ git pull
... time passes ...
$ git checkout topic # remote topic
$ git checkout master
$ git merge topic
$ git push
    non-fast-forward updates were rejected
$ git pull
    merge by rebase
$ git push

The result is that the file changes are pushed but the reference back to the topic branch has been lost. (On github, this results in a pull request not closing.) It also makes the graph look odd in that topic branch is not shown to be merged into master.

The trigger for causing this to happen is a pull after the merge that requires a merge. That is, master was changed during the topic merge.

The setting for pull is to always use pull –rebase.

As a further side affect a tag placed on the merge point was kind of lost. The tag was never pushed (although it was requested).

We were able to fix the graph by re-merging the topic branch.

How can we avoid this in the future? What is it that causes this problem? It doesn’t feel like we’ve done anything incorrectly.

Thanks!

ps
The config is set to only pull/push the current branch.

  • 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-26T00:04:18+00:00Added an answer on May 26, 2026 at 12:04 am

    The “fix” is to not use pull --rebase – rebasing is what is losing your history. The entire point of merging instead of rebasing is to keep the separate branch history around.

    git pull is normally the equivalent of git fetch+git merge.

    git pull --rebase is git fetch+git rebase.

    The former preserves history links; the latter creates entirely new commits. (Is there a particular reason you have git pull set to always rebase?)

    You can also do a git pull on master before you merge in topic to try to ensure that master is up to date (so that the merge won’t result in a non-fast-forward history).

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

Sidebar

Related Questions

Overview: I have an array of 20 byte strings that needs to be stored
What's the widest overview and where are the deepest analysis of different replication methods
Is there an exact overview what has changed in the SP1 for .NET 3.5?
How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right
I want to get an overview of files that are updated in TFS (that
Is there any way to see an overview of what kind of queries are
Could somebody give me a brief overview of the differences between HTTP 1.0 and
This article gives a good overview on why structured exception handling is bad. Is
I'm looking for a broad overview of what I need to do and in
I'm looking for an overview of algorithms, you need every now and then. If

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.