Skip to content

Instantly share code, notes, and snippets.

@ruseel
Last active December 22, 2015 00:09
Show Gist options
  • Save ruseel/6387320 to your computer and use it in GitHub Desktop.
Save ruseel/6387320 to your computer and use it in GitHub Desktop.
git svn workflow - 특정 SVN 브랜치만 새로 다운로드 받기

특정 branch만 더 checkout 받으려면 .git/config에 아래처럼 추가하고

  [svn-remote "svn-aug17-n"]
      url = http://127.0.0.1/svn/someproject/branches/aug17/someproject
      fetch = :refs/remotes/git-svn-aug17

fetch하고

  $ git svn fetch svn-aug17 -r 634

작업할 tracking branch를 만들고

  $ git branch --track aug17-n remotes/git-svn-aug17

작업이 끝나면

$ git svn dcommit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment