分享

Rename A Gitosis Repository

 cwhbox 2012-10-15

Rename A Gitosis Repository

I 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

Before:

[group main]
writable = tk

After:

[group main]
writable = show-time

Push changes

git push origin master

Connect to gitosis server and rename correct folder

cd /home/git/repositories
mv tk show-time

Change the remote reference in all repository clones

cd /src/show-time
git remote rm origin
git remote add origin git@example-git-server.com:show-time.git

Done and done.


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多