GitLab專案遷移到Gerrit

2022-04-11 15:47:39 字數 722 閱讀 3547

1、在gerrit上新建專案;

2、gerrit專案配置許可權(此處非**):

reference:refs/* 

push annotated tag

push signed tag

forge committer identity

create reference

read

push

3、將gitlab專案轉殖至本地;

4、定位到gitlab專案的目錄下,使用命令,將遠端倉庫路徑改為gerrit專案倉庫路徑:

git remote set-url origin ssh:

5、檢出所有分支:

git branch -r

git checkout branch1

git checkout branch2

git checkout branch3

...

6、推送所有分支和標籤到gerrit上:

git push --all

git push --tags

注:gitlab切換到某分支下->git push ssh: 可以只push 本分支下的**到gerrit

GitLab專案遷移到Gerrit

1 在gerrit上新建專案 2 gerrit專案配置許可權 此處非 reference refs push annotated tagpush signed tagforge committer identity create reference read push3 將gitlab專案轉殖至本地...

gitblit專案遷移到gitlab

遷徙的專案只能乙個乙個的遷移,批量遷移寫指令碼應該能實現。前提是windows 安裝有git外掛程式 才能執行以下命令 首先從gitblit中轉殖專案檔案 windows cmd命令開啟,進入建立的目錄中 git 轉殖所有gitblit中的專案 git clone bare http 網域名稱 分組...

svn專案遷移到公司gitlab庫

2 開啟git bash控制台 3 git 全域性設定 git config global user.name gitlab使用者名稱 git config global user.email 你的gitlab郵箱 4 建立新版本庫 如果本地沒有從svn下拉取通過git 從svn轉殖專案 git s...