2015-06-30 145 views
10

最近,我發現一個名爲Gogs的gitlab替代品。將gitlab移植到gogs

任何建議將Gitlab中的回購遷移到Gogs?我當然不會期待這一切,儘可能多。

回答

6

克隆localy裸git倉庫(=服務器端回購),並推動它作爲鏡子新的回購協議:

git clone --bare http://my.gitlab.project.git 
cd project.git 
git push --mirror http://my.gogs.project.git 

這將推動所有的提交,分支,標籤等,這將對於任何工作混帳回購協議,無論它是在gitlab,高格,github上託管等

+0

保重! git push - 都不會推送標籤!你還必須添加git push --follow-tags! – rralf

+1

是好言論!這就是爲什麼我用clone --bare和push --mirror編輯了答案 – PierreF