Changes between Version 19 and Version 20 of git-svn-tutorial
- Timestamp:
- 11/23/09 15:56:49 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
git-svn-tutorial
v19 v20 1 = Getting the GIT checkout = 2 == Import Straight from the SVN repo == 1 3 First, we need to fetch a copy of the repository. 2 4 … … 19 21 Which is very similar to {{{svn up}}}. 20 22 23 == From the leto's github mirror == 24 21 25 Because importing all of history is *very* time consuming, DukeLeto has already gone through the trouble and maintains a github mirror of Parrot at http://github.com/leto/parrot/tree/upstream . 22 26 {{{ … … 32 36 33 37 }}} 38 39 === Adding git-svn metadata to the github clone === 40 If you want to re-populate the SVN metadata that can quickly be done by taking your up-to-date clone of leto's repo off of gihub and adding this to your .git/config 41 42 {{{ 43 [svn-remote "svn"] 44 url = https://svn.parrot.org/parrot 45 fetch = trunk:refs/remotes/trunk 46 }}} 47 48 Then run this command to find the "top commit" 49 50 {{{ 51 git show origin/upstream | head -n 1 52 }}} 53 54 and put that commit hash into a file .git/refs/remotes/trunk (obviously replace the has with the one from the above command) 55 56 {{{ 57 echo c85aaa38b99cedb087e5f6fb69ce6d4a6ac57a0b > .git/refs/remotes/trunk 58 }}} 59 60 and finally 61 62 {{{ 63 git svn fetch 64 }}} 65 66 == From full git-svn tarball == 34 67 35 68 You can also download a tar archive containing the complete history and all branches as well as svn meta data from … … 38 71 * http://moritz.faui2k3.org/files/parrot-all-git-svn.tar.gz (recommended; prepared by Tene, polished by moritz). 39 72 73 = Basic local workflow = 40 74 Now, start working on patches. The simplest way to work, without local branches, is: 41 75