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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:09:10+00:00 2026-06-17T21:09:10+00:00

I have a web site with about 15,000 files on a production server. A

  • 0

I have a web site with about 15,000 files on a production server. A remote developer is now doing the bulk of the work on the site, but I occasionally need to make some edits also. It is apparent that we need some version control, and so I am trying to set up git.

I really would like to keep the setup simple and straightforward. We don’t need any sort of integrator to look over our changes – we are both fully trusted to push changes to the production site. I also don’t see any need to push changes to a staging server before making them live, as there’s nothing we could test there that we can’t test on our local machines. I basically just want something which will keep us from clobbering each other’s files. Here is the scenario I have in mind:

          Production Server
              ↗↙ ↖↘          
Developer1(LAMP)  Developer2(WAMP)

Questions:

  1. Does this workflow make sense for a team of two developers (one of whom only makes occasional edits) or are there better ones?

  2. Is there any advantage at all in adding a staging server in between the developers and the production server?

  3. I assume the production server should be a bare repo with a post-receive hook pointing to the webroot folder, that we would clone a copy to each developer’s machine, and then git commit / git push to launch any changes back to production?

  4. Is there any easy way to create a bare repo on the production server and then add the site’s existing 15,000 files to it? Or do I have to download them to the clone repo on my local workstation and then do git add / commit / push to get them loaded in the production server repo? (They could take almost 13 hours to upload.)

Thanks!

  • 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-17T21:09:11+00:00Added an answer on June 17, 2026 at 9:09 pm

    Nothing wrong with the workflow, per se. But generally the “canonical” repository is separate, and you deploy to your production server manually with some other mechanism like rsync. This way:

    1. Your production server updates aren’t tied to your development workflow. If your production server (ever!) needs any work done after a code change—restarting the webserver, flushing some cache, making a schema change, etc.—then suddenly production system concerns are interfering with your ability to update code and that sucks.

    2. You don’t have to worry about accidentally leaking access to your .git directory and exposing all your source code and development history.

    3. It takes two accidents to break the site (ruin master and deploy) instead of just one (ruin master).

    4. Perhaps not a concern with just the two of you, but it’s useful to have the “update the site” button have different authorization than the “update the code” button.

    Staging servers exist to be like production, but breakable. You only have two developers, yet you’re already using wildly different operating systems; I’m fairly certain at least one of you is not using a development environment identical to production. 🙂

    And no, you can’t add files to a bare repository. You need a working copy to do anything with the working tree.

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

Sidebar

Related Questions

We have a non-profit web site that got about 5 million hits in May.
I have an IFRAME on my web site. It's about 300px wide by 200px
I have searched a lot about the difference between Website and WebApplication but didn't
I have asked several questions about Zend and its search functions. Now after further
Problem: I have about 50,000 rows in Excel. Each row contains a the word
Abstract problem : I have a graph of about 250,000 nodes and the average
I have web site set up that has some forms authentication through LDAP. I'm
I have a web site which enables user to add or delete their own
We have a web app + web site, which has performance issues. I have
If I have a web site (mydomain.com) that has an ssl cert installed. 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.