gitlab 導入已有的版本庫

   gitlab導入已有的版本庫步驟:

  1. 將git工程拷貝入gitlab對應的版本庫中,並賦予權限:

sudo cp -r /home/chen /share/gitlab/git-data/repositories/
sudo chown -R git:git /share/gitlab/git-data/repositories/chen

2. 導入工程

sudo gitlab-rake gitlab:import:repos['/share/gitlab/git-data/repositories/chen']

 

發佈了74 篇原創文章 · 獲贊 2 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章