Rename A Gitosis Repository
Posted: May 28th, 2009 | Author: Jerod | Filed under: Git | Tags: gitosis | CommentsI use gitosis for private git repository hosting (and it’s awesome). If you are interested, this great tutorial will walk you through setting it up yourself.
I recently needed to rename one of my repositories and couldn’t find any info on how to do it, so here is a walk-thru. I will demonstrate the steps of renaming a repository called “tk” to “show-time“.
- Rename project in gitosis.conf and push changes
- Connect to gitosis server and rename correct folder
- Change the remote reference in all repository clones
Before:
[group main] writable = tk
After:
[group main] writable = show-time
git push origin master
cd /home/git/repositories mv tk show-time
cd /src/show-time git remote rm origin git remote add origin git@example-git-server.com:show-time.git
Done and done.