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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:01:08+00:00 2026-05-26T02:01:08+00:00

I have a DEV server running our CMS and I would like to pull

  • 0

I have a DEV server running our CMS and I would like to pull from and push to a repository in the CMS install – but I get errors because I’m trying to push to a non-bare repository (I’ve cloned this remote repository locally).

But from what I understand, a bare repository doesn’t actually contain files which is obviously going to be a problem for viewing the CMS – not sure if this is correct?

Sorry if this is easy, I’ve been reading a lot of answers here but am still having trouble understanding how to set up my local and remote repositories when the remote needs files in it.

Also, I’m using Tower as I’m not too hot with git in the command line.

Any help or suggestions would be much appreciated.

Cheers

Ben

  • 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-26T02:01:08+00:00Added an answer on May 26, 2026 at 2:01 am

    Using Git to manage a web site has a good run-down on how this is done.

    The idea is to push to a bare repo (one that does not have a working directory), and checkout to your web folder in a post-receive hook. Once you have that, you can push your updates to the bare repo with a simple git push <remote_name>, and that will update your web root.

    With that setup you have:

    • Your local repo – completely normal git repo you can work in
    • The server’s bare repo – all the git data, but no checked out files
    • The server’s web root/CMS folder – not a git repo, but contains one checked out revision.

    That keeps the git stuff out of your web root, so that it contains only your CMS files. Makes things cleaner.

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

Sidebar

Related Questions

I have a dev server in our office that is behind the firewall. The
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
I have SQL server 2000 dev edition. But it isn't compatible with my new
I have a single server that hosts our production and development databases. It's running
I have not done any web dev before. I got my Apache server running
We have a dev server that has managed to become indexed by Google. Page
I have a small app/site on a dev server with a data table in
I seem to have an app on my Dev server that has lots of
Say I have a htaccess file shared by dev.server and server.site.com. The first domain
I only have SQL Server 2008 (Dev Edition) on my development machine I only

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.