Git with SVN 协同设定

Git Server

  1. 從 SVN repository 建立一個 Git repository (Fetch)
    git svn clone --no-minimize-url --username=user_name svn://gisvsssvr/GRelease/remote_repo_name local_repo_name
  2. 建立一個 Git bare repository
    git clone --bare /c/Git/GRelease_Fetch/local_repo_name
  3. 設定 Git repository (Fetch)
    git remote add mirror /c/Git/GRelease/local_repo_name
  4. Fetch Server 的排程設定
    git svn rebase
    git push mirror

User (Local)

  1. 設定 Git repository
    git clone http://user_name:password@c3-gis-git.ad.garmin.com:8080/git/GRelease/remote_repo_name local_repo_name
  2. 設定 SVN repository
    git svn init --no-minimize-url --username=user_name svn://gisvsssvr/GRelease/remote_repo_name local_repo_name
    git svn fetch

Reference

posted @ 2013-04-25 11:21  重庆Debug  阅读(448)  评论(0编辑  收藏  举报