This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
sourceforge:git [2018/04/22 08:51] karl Use svn: instead https: as clone and fetch url. With svn: protocol r2 was fetchable |
sourceforge:git [2018/04/22 12:38] karl Add rebase command, more splits into headlines |
||
---|---|---|---|
Line 73: | Line 73: | ||
</code> | </code> | ||
+ | ===== git svn fetch -r 2 svn == | ||
Inside this code directory we start to "fetch" revision by revision : | Inside this code directory we start to "fetch" revision by revision : | ||
<code bash> | <code bash> | ||
Line 115: | Line 116: | ||
</code> | </code> | ||
+ | ===== git svn rebase -l == | ||
+ | The downloaded files are still kept inside the data pack files; \\ | ||
+ | to make them show up it needs to rebase locally : | ||
+ | <code bash> | ||
+ | git svn rebase -l | ||
+ | First, rewinding head to replay your work on top of it... | ||
+ | Fast-forwarded master to refs/remotes/git-svn. | ||
+ | </code> | ||
+ | Now the trunk/arch folder has some files to view . | ||
+ | |||
+ | **Note**: Do not forget the **-l** option for rebase; without that option it would rebase against the HEAD of the svn tree, \\ | ||
+ | downloading all the 20000+ revisions ! | ||
+ | |||
+ | And ''git log'' tells us : | ||
+ | <code bash> | ||
+ | git log | ||
+ | commit e8b6556cff76da629a33f2f20c5e3388df081fca (HEAD -> master, git-svn) | ||
+ | Author: uid200 <uid200@282e977c-c81d-0410-88c4-b93c2d0d6712> | ||
+ | Date: Mon Mar 29 04:46:48 1999 +0000 | ||
+ | |||
+ | Initial revision | ||
+ | | ||
+ | | ||
+ | git-svn-id: svn://svn.code.sf.net/p/crossfire/code@2 282e977c-c81d-0410-88c4-b | ||
+ | 93c2d0d6712 | ||
+ | |||
+ | commit c03bc89287c20c60c8d52377771046f54166d4eb | ||
+ | Author: (no author) <(no author)@282e977c-c81d-0410-88c4-b93c2d0d6712> | ||
+ | Date: Mon Mar 29 04:46:48 1999 +0000 | ||
+ | |||
+ | New repository initialized by cvs2svn. | ||
+ | | ||
+ | git-svn-id: svn://svn.code.sf.net/p/crossfire/code@1 282e977c-c81d-0410-88c4-b93c2d0d6712 | ||
+ | </code> |