Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Cheers

T

share|improve this question
add comment

2 Answers 2

I ended up using a symbolic link to do this.

Seems to work without any issues.

share|improve this answer
add comment

Copy and change home dir

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

Your Answer

 
discard

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.