As stated in the gitolite basic-admin manual:
renaming a repo
This is similar; there’s no code to do this in gitolite. What you do is:
-
log on to the server,
cd $REPO_BASE(default:cd ~/repositories), andmv old-name.git new-name.git -
back on your gitolite-admin clone, edit
conf/gitolite.confand replace all occurrences ofold-namewithnew-name. Then add, commit, and push as usual.
The order of these 2 steps is important; do not reverse them 🙂
A third step is necessary on gitolite3:
- edit file
gl-confin the repo and change the repository name to the new name
And of course, every user should update his clone configuration to point to the new repo name.