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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:07:47+00:00 2026-05-28T01:07:47+00:00

I am trying some variations on an open source project and want to keep

  • 0

I am trying some variations on an open source project and want to keep in sync with the master git.
On the other hand, I am sharing with an other developer a git repository with modified sources until we have a set of working diffs to submit to the master project.
We want to have a shared repository to track each other’s work, since we do not work in the same location.
I set up a git with two remotes and my tree is ahead of master of a few commits. This is no surprise.

git pull origin

works with no problem.
When I try to sync to the private shared repository, I try a

git push my_own_shared_git

I get this error

! [rejected]        HEAD -> master (non-fast forward)

I am sure that git can handle this and much worse situations, but I would like to know how to handle it in the most natural and sensible way.
Ideally, I would like to handle a branch of the HEAD on origin and keep local history and diffs until I am able to submit my patches.
Thank you.

  • 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-28T01:07:47+00:00Added an answer on May 28, 2026 at 1:07 am

    This error indicates that your mjy_own_shared_git has some commits which you have not.
    So just type

    git pull my_own_shared_git
    

    before

    git push my_own_shared_git
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m thinking about trying some development for the iPhone, is it possible to install
I'm trying some of the ASP.NET MVC tutorials and one of them has the
Recently I was trying some practice programs in python and I came across this
I am trying some way to optimize following sql statement: exe_sql DELETE FROM tblEvent_type
I have been trying some programs in the C Language and come across to
I was trying some problems with my 2D ruby array and my LOC reduces
I'm a beginner C++ programmer, and to stretch my mind I've been trying some
I'm using Eclipse with C++ plugins on my macbook, trying some practice projects to
I've started with ASP.NET MVC recently, reading blogs, tutorials, trying some routes, etc. Now,
Im trying push some data into a CRM system via an XML import. I

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.