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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:25:11+00:00 2026-05-19T13:25:11+00:00

I have an existing directory on my webserver, currently deployed to by file copy,

  • 0

I have an existing directory on my webserver, currently deployed to by file copy, that I’d like to change to deploying with gitosis. How can I create a new gitosis repository to point to this web directory and then clone it down to my local machine?

  • 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-19T13:25:12+00:00Added an answer on May 19, 2026 at 1:25 pm

    while Arrowmaster is correct in saying that Gitosis has been depreciated in favour of Gitolite there is nothing to say that you cant use git for web deployment, there are loads of people doing it including me. What you need to do is the following, get Gitolite setup and have a working installation whereby you can clone, push and pull into the repositories that Gitolite will create for you. Then it is just a matter of running git init in you existing web directory and then git add . to add all files to it. You then add a gitolite repo as a git remote and git push master into it so you can git clone it to your local machine make allowing you to make changes and push back to the live site.

    Essentially you would have a hub repository (gitolite) and prime repository (web directory) these would be lined by means of hooks with within git. I have to point out though that I don’t use hooks and manually pull from Gitolite (sudo git pull hub master) on the live machine as I’m not comfortable pushing to a live site in case I think of something I’ve forgotten.

    I take no credit for this setup and owe all knowledge to Joe Maller for his very instructional guide here I have although obviously swapped git for Gitolite.

    After a long time messing around and having some success with Gitosis I switched to Gitolite and haven’t looked back. I have found it a lot less buggy and more stable in the push/pull permissions department.

    I did however have some issues setting Gitolite up and I owe this tutorial a world of thanks for showing me the way forward. It is however for Centos but should be easily ported to Ubuntu.

    If you do decide to go the gitosis route then maybe this tutorial will help you with the installation.

    Good luck.

    seanl

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

Sidebar

Related Questions

I have a directory of files that I'd like to append file extension to
How to create log file in an existing directory ?..I have tried out this
Basically, I have a script that cannot see an existing directory on the OS
I have existing java code and need to create Design Document based on that.
I have an existing site that I'd like to convert to use routing, and
I have an existing directory structure that is all nicely checked into SVN, so
I have an existing website that uses the same code base, but is deployed
I have an existing ASP.NET website that I would like to port to Azure
I have existing code that uses CMNewProfileSearch to find then iterate over the color
I have existing Linux shared object file (shared library) which has been stripped. 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.