-
list your repositories
cd /home/git sudo ls repositories/
-
rename specified repo
sudo mv repositories/old-name.git repositories/new-name.git
-
clone gitolite-admin (under git folder)
sudo -u gitlab -H git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
-
update gitolite.conf
sudo emacs /tmp/gitolite-admin/conf/gitolite.conf
replace all occurrences of
old-name
withnew-name
-
push gitolite.conf
sudo git add . sudo git commit -m "rename repo" sudo -u gitlab -H git push
-
cleanup /tmp/gitolite-admin
sudo rm -rf /tmp/gitolite-admin
-
update gitlab database (assume using mysql)
use gitlabhq_production; select * from projects; update projects set path='new-name' where path='old-name';
-
update the remote repo path in your local git
-
DONE!
Last active
November 22, 2017 14:00
-
-
Save mongris/5011960 to your computer and use it in GitHub Desktop.
Rename repo's name in gitolite and gitlab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment