Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed gitosis on my CentOS box last week. I'm really happy with how it works and how simple it is to use.

I've run into a small problem though. Because gitosis is installed under a new user account git all of the install files and the repositories are held in the git user's directory which is on the system drive.

I only have a limited amount of space available on my system drive, so would like to move the repository directory to a second drive on this machine.

Short of copying them over and creating a symlink to the new location, I can't see a way to achieve this.

Has anyone managed to do this successfully?



share|improve this question

I ended up using a symbolic link to do this.

Seems to work without any issues.

share|improve this answer

Copy and change home dir

sudo cp -R /home/git/ /new/path
sudo usermod -d /tmp root
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.