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

  • Home
  • SEARCH
  • 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 3304704
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:05:25+00:00 2026-05-17T21:05:25+00:00

I have made a central bare shared repo at foo.org. user A has done

  • 0
  1. I have made a central bare shared repo at foo.org.
  2. user A has done git clone ssh://foo.org/blah.git
  3. user A has created file ‘lol’ which is a blank file. Commits it to local repo. Does git push
  4. user B does mkdir foo and cd foo
  5. user B then does git clone ssh://foo.org/blah.git.
  6. user B edits lol file.
  7. user A edits lol file.
  8. user A commits and git push to central repo
  9. user B commits and git push and is given:

    error: failed to push some refs to ‘ssh://foo.org/blah.git’
    To prevent you from losing history, non-fast-forward updates were rejected
    Merge the remote changes before pushing again. See the ‘non-fast forward’

  10. user b does git pull

    From ssh://foo.org/home/meder/central/foo
    08a0cda..fba6968 master -> origin/master
    Auto-merging lol
    CONFLICT (content): Merge conflict in lol
    Automatic merge failed; fix conflicts and then commit the result.

  11. user b does vim lol and edits file to his liking. then tries git commit afterwards and is given:

    lol: needs merge
    lol: unmerged (039727ec5a50d0ed45ff67e6f4c9b953bd23c17d)
    lol: unmerged (9307e337aa159ed6574eb84532f107685e46a16c)
    lol: unmerged (f88ad411f67850938dc369426cdbba76812e9126)
    error: Error building trees

What do I have to do at this point? I tried a git merge but it says fatal: You have not concluded your merge. (MERGE_HEAD exists)

I know for sure I’m doing something stupidly wrong. Can someone just point out what it is?

  • 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-17T21:05:25+00:00Added an answer on May 17, 2026 at 9:05 pm

    In step 11, has user b done a ‘git add’ to add their hand-merge, before ‘git commit’?

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

Sidebar

Related Questions

I have a central Git bare repository. When a push is made to that
I have successfully made, committed, and pushed changes to a central git repository. I
I have made a cart and the cart has remove item button, but the
I have a git repo hooked up in phpstorm on windows. I committed a
I have an application that is made up of the following: A central database
I have made a jQuery toggle for a menu that I had in mind.
I have made an application for IPad in objective C. In this I am
i have made an application having entity framewrok. It is wpf application, now it
I have made a code that read data from flash Nand (without filesystem). fd
I have made a website using( Asp.net, c# ) and its content in English

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.