2018年7月18日 星期三

checkout svn repo and convert to git

用 git svn 來checkout svn repo,會convert 成 git repo,當然 svn 的 commit log 都會保存下來。
git svn clone https://subversion.my.com/svn/mysvnproj mygitproj

然後以後要從 svn update,對應的是:
git svn fetch


fetch 完,自己工作的 branch 要 update,還要下一次:
git svn rebase

沒有留言:

張貼留言