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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:01:44+00:00 2026-05-14T17:01:44+00:00

I’m new to git so please feel free to RTFM me… I have multiple

  • 0

I’m new to git so please feel free to RTFM me…

I have multiple development sites (none of which can communicate via a network with each other) and am working on a few projects (with a few people) at any one time.

What I would ideally have is at each site a centralized repository that can be pulled from but development would occur in our own (personal) repos. Then I would like to be able to sync across the centralized repos (via USB key for example).

I want a centralized repo at each location as (1) I’m new to git and do break my (personal) local repo by playing around and (2) some projects get put on hold so I want to be able to free up disk space by deleting them. This is the “backup” part of my question.

I was also hoping to be able to use ‘git clone –bare’ for my centralized repos (and the USB key repos to?) as we don’t need the full checkout, just the git benefits.

However I can’t seem to get a bare repo to work as repo I can push from. I’ve used ‘git remote’ to set up an remote origin (similar to http://toolmantim.com/thoughts/setting_up_a_new_remote_git_repository) but I can’t get ‘git push’ to work – it seems I need a checked-out repo.

.

Does anyone else use this sort of repo/development structure or is there something fundamental about git usage that I’m missing?

.

A solution that I thought about that might not work – If I had a ‘git clone –bare’ at each site and then use a git repo on my removable media which has remotes set up for each site then I could (‘pull’) sync my USB key with each repo. But then can I update the site repo from my USB key? Could I push from USB?

  • 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-14T17:01:45+00:00Added an answer on May 14, 2026 at 5:01 pm

    OK, let me just start off by saying that the whole premise of security by not being able to connect to the internet is completely misplaced. I shouldn’t be judging without knowing all the facts, but considering the fact that you are asking this kind of basic question on StackOverflow means you are not a multi-national corporation developing a next generation of rail-guns and is under constant hacker attack.

    Depriving developers of internet connection improves security by about 0.01% and slows them down as they can’t research relevant stuff by about 1000%. You need to start off by advocating a better environment to whoever is in charge and have a hosted repository on a server somewhere. You can pay for a private github repository or roll out your own git repo on linux using gitorious or gitosis.

    As for the actual problem. Instead of pushing from your bare repository, all you do is pull into it. You are on the right track with the last paragraph.

    1. Set up a bare repo at each site.
    2. Set up a bare repo on the USB stick.
    3. Developers push their changes to the site repo.
    4. Set up remotes on the stick to each of the sites.
    5. Pull to the USB stick from each of the site repos.

    This is a good solution in theory but you would find that you will at some point get conflicts when syncing repos. In that case the developer needs to resolve those conflicts.

    A better solution would be to not have the site repository. Because the whole repository is contained in a directory, you can make as many copies of it locally as you want. This will also address your “playing around” concern.

    If the developers need to share code, they can just pull from each other. Then the USB stick comes in and they pull/push their changes. This way the people who create conflicts are the ones responsible for merging.

    Let me again reiterate how much of a productivity burden this will be. It’s hard enough to have a single shared repository with multiple people involved. With the time delay of manually synchronising the sites chances are if there is a bug, it won’t be fixed today, but the day after.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a jquery bug and I've been looking for hours now, I can't
I want use html5's new tag to play a wav file (currently only supported
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put

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.