Tôi đang sử dụng SubGit để đồng bộ hóa repo Git và SVN. Khi nhân bản một repo Git từ xa, tôi muốn bảo toàn tất cả lịch sử của repo đó. Các bước tôi hiện theo dõi chỉ cho phép tôi sao chép lịch sử của chi nhánh chính:Chuyển kho lưu trữ Git sang SVN với SubGit
svnadmin create svn_repos
subgit-1.0.0-EAP_1381/bin/subgit configure svn_repos
subgit-1.0.0-EAP_1381/bin/subgit install svn_repos
git clone svn_repos gitRepo
cd gitRepo/
git remote add -f newRemote git://127.0.0.1/gitRepo
...
From git://127.0.0.1/gitRepo
* [new branch] FirstProductionTag -> newRemote/FirstProductionTag
* [new branch] SecondProductionTag -> newRemote/SecondProductionTag
* [new branch] ThirdProductionTag -> newRemote/ThirdProductionTag
* [new branch] bugfix -> newRemote/bugfix
* [new branch] bugfix2 -> newRemote/bugfix2
* [new branch] master -> newRemote/master
git merge -s ours --no-commit newRemote/master
git read-tree --prefix=foo/bar/ -u newRemote/master
git commit -m "Merged new Remote into subdirectory /foo/bar"
git push origin master
Làm cách nào để hợp nhất các thay đổi từ bugfix và chi nhánh bugfix2 cùng một lúc? Cảm ơn!
Evgeniy, bạn nghĩ sao về việc thay đổi tiêu đề câu hỏi? Tôi nghĩ rằng nó hiện không phản ánh vấn đề thực tế bạn có. Tôi muốn đề xuất "Chuyển đổi kho Git vào SVN với SubGit" hoặc một cái gì đó như thế này. – vadishev
Vâng, bạn nói đúng. Cảm ơn! –
Tuyệt vời! Cảm ơn bạn. – vadishev