Git with SVN 协同设定
Git Server
- 從 SVN repository 建立一個 Git repository (Fetch)
git svn clone --no-minimize-url --username=user_name svn:
//gisvsssvr/GRelease/remote_repo_name local_repo_name
- 建立一個 Git bare repository
git clone --bare /c/Git/GRelease_Fetch/local_repo_name
- 設定 Git repository (Fetch)
git remote add mirror /c/Git/GRelease/local_repo_name
- Fetch Server 的排程設定
git svn rebase
git push mirror
User (Local)
- 設定 Git repository
git clone http:
//user_name:password@c3-gis-git.ad.garmin.com:8080/git/GRelease/remote_repo_name local_repo_name
- 設定 SVN repository
git svn init --no-minimize-url --username=user_name svn:
//gisvsssvr/GRelease/remote_repo_name local_repo_name
git svn fetch