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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:42:49+00:00 2026-06-14T03:42:49+00:00

We have a two developer team and want use git. But I don’t know

  • 0

We have a two developer team and want use git.

But I don’t know which way to use git is better:

  1. Model with bare-repo. Here there are two local repos + one bare (main) repo throught with 2 developers are sync their commits.

  2. Model without bare-repo. Here is two local repos, one of which is set as a remote to other.

I wonder what model is better to use and why? And especially what kind of difficulties can be while I would like to use second model.

  • 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-06-14T03:42:51+00:00Added an answer on June 14, 2026 at 3:42 am

    You generally don’t push into people’s repositories in which they work, that would be troublesome. Bare repositories are for pushing into, while non-bare repos tend to have a developer in front of them and he’s responsible for managing it and pulling into it from places.

    So: A model without central repository would contain two non-bare repos (each having the other as remote; consider the remote list as a repository’s “address book”).

    During work, you would periodically pull changes from each other, but that would make some problems:

    • some additional communication is needed (when to pull, which branches to pull)?
    • you’d need to make sure that both repos are available (so that developer A wouldn’t need to wait for developer B to turn on his PC whenever he needs to pull something)

    A bare, central repository helps with that:

    • It’s supposed to be always available
    • You decide which branches are in a “push-ready” state, what to share, what to keep to yourself
    • It serves as a synchronization point: there’s always the current version so in case of divergence it’s always clear who’s supposed to merge.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a team of three developers, two of whom use a standard local
As a web developer I frequently will have two floated (child) divs inside of
i am new to iPad developer, i have created two or three iPad application
I have now been working as a web developer for two weeks and have
I have a repositories, i want to have two views: Developers can see the
I have two questions. In my webpage (developed by me), I use the GET
I'm setting up templates and snippets for my design team, they don't want to
I'm on a team using Git right now, and we have a pretty good
I don’t have experience with BDD but after some research I see that it
I have an app that I want to be able to build two different

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.