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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:28:42+00:00 2026-05-24T17:28:42+00:00

I am in the final phases of getting Git and Gitolite working. This is

  • 0

I am in the final phases of getting Git and Gitolite working. This is the current situation:

enter image description here

  • 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-24T17:28:42+00:00Added an answer on May 24, 2026 at 5:28 pm

    The repositories under Gitolite management don’t have working copies. So what you have to do is create another repositories with working copies, commit the data and push them to the gitolite-managed ones. The easiest thing is to do that on the server directly. Therefore under each of the www directories, do:

    cd /home/X/www
    git init
    git remote add origin /home/gitolite/repositories/X.git
    git add .
    git commit
    git push origin
    

    Now you have the data in the repositories, which was the easy part. I am assuming the same user account has access to both gitolite repositories and the server data (as you said in chat), which makes the issue significantly easier.

    Now the repositories don’t have alternates, so you have two copies of the data. To remove them, it’s probably easiest to for each site do:

    cd /home/X
    git clone -s /home/gitolite/repositories/X.git www.new
    mv www www.old
    mv www.new www
    rm -r www.old
    

    (the -s option to clone ensures the /home/X/www/.git repository won’t copy data from /home/gitolite/repositories/X.git). And finally you have to install a hook. It’s already explained in this question, but your situation is slightly easier. Since the data live on the same server and under the same user, you can simply install a post-update hook in all the gitolite repositories containing just:

    #!/bin/sh
    cd /home/X/www
    git pull
    

    If you ever want to move the repositories and web server to separate servers (which I’d recommend, because the web server, if it’s facing out, should be in a “demilitarized zone”, while the git server is better off in your internal network behind another line of firewalls), you will of course need the ssh trigger thing described in that other question.

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

Sidebar

Related Questions

this is the error log i am getting i have highlighted the error also
This is my Phase Listener public class AdminPhaseListener implements PhaseListener { private static final
Final update: I had forgotten to run the initdb command. By running this command
final AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle(test); alert.setMessage(test); // Set an EditText view to
I have this PhaseListner: public class CheckAccessInterceptor implements PhaseListener { private static final long
I got a simple script: int phases = 6; final int max = 8;
I've been struggling with getting this plugin to play nicely with the maven-war-plugin for
It might sound a little odd but I am in the final phases of
Final goal: Have a few java objects sharing the same base class persisted into
FINAL EDIT: After following the answer from Darin Dimitrov, I have found that the

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.