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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:18:41+00:00 2026-05-29T21:18:41+00:00

I am currently using git for a project that has two participants (me and

  • 0

I am currently using git for a project that has two participants (me and my friend). SO I did the following :

I created a repository on a machine that is always accessible by any machine on our local network.

We both cloned this repository into our respective local machines creating local repositories.

Now suppose at one point of time (wherein all three repository copies are in the exact same stage), I fork a branch and start some development in that branch. I push those changes to the remote and I see that a new branch has automatically been created in the remote.

On the other machine I pull that branch into a new local branch of the same name so they are all in the same state again.

Now when I am done with this fork branch, and I want it merged with the master, I simply did a checkout to master and did a git merge my_branch. Now how do I make this change reflect in the global repository and the other local repository ? Will I have to issue merge commands there too ? Or is there some way to push and pull so that merges are automatically synced?

What IS the git philosophy ? Should all local repositories and the global repository be exactly in sync commit by commit so that the trees everywhere are exactly same ? Or can individual trees be different and whatever branches are needed be pulled from the remote accordingly ?

(I have learned GIT by searching commands for whatever I need done, however I am very confused by how it is supposed to work)

The remote repository I created was a bare repository

  • 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-29T21:18:42+00:00Added an answer on May 29, 2026 at 9:18 pm

    After you’ve merged into master, use git push to push that merge up to your origin repository, just like you would with any other commit. Your friend will need to git pull to get your changes, but so long as there’s nothing new in the origin, and your friend hasn’t done any changes in master in their own copy, no additional merges will have to be run.

    The repositories won’t always be exactly in sync; that’s one of the key differentiators of a distributed VCS.

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

Sidebar

Related Questions

I'm using Git on a new project that has two parallel -- but currently
I am currently working with a subversion repository but I am using git to
I am currently working for a Scrum Team that is using a shared git
I'm currently working on .Net projects that are using either Git or Mercurial (Hg)
We are currently using SVN to develop an internal application that has most of
I've been using Git to keep a repository of a project on a separate
Currently I am working on a project that involves the following daily workflow: Update
I'm currently using VS2005 Profesional and .NET 2.0, and since our project is rather
I am currently using the following command to upload my site content: scp -r
I have a project I manage out of a git repository. We use the

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.