Changes between Version 13 and Version 14 of TracTeam/Repositories
- Timestamp:
- May 15, 2017, 7:04:27 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTeam/Repositories
v13 v14 10 10 11 11 See the list in https://hg.edgewall.org/trac. 12 13 12 14 13 == Git repositories #git … … 29 28 First you need to clone your repository (let's call the local repository `$user` as well): 30 29 {{{#!sh 31 $ git clone http ://svn.edgewall.org/git/trac/devs/$user $user30 $ git clone https://svn.edgewall.org/git/trac/devs/$user $user 32 31 $ cd $user 33 32 }}} … … 45 44 Speaking of which, we need to make it easy to retrieve the changes coming from upstream. For that, we add a remote that we will call `mirror`: 46 45 {{{#!sh 47 $ git remote add mirror http ://svn.edgewall.org/git/trac/mirror46 $ git remote add mirror https://svn.edgewall.org/git/trac/mirror 48 47 $ git fetch mirror 49 48 }}} 50 49 (use that URL directly from e.o, or use one of the github ones) 51 50 52 Disable pushing to the mirror, just to be safe: 53 {{{#!sh 54 $ git remote set-url --push mirror no_push 55 }}} 56 57 If you'd like to get tags from the mirror, do like this: 58 {{{#!sh 59 $ git fetch mirror 'refs/remotes/tags/*:refs/tags/*' 60 }}} 61 62 We also would like to fetch from this remote instead of the origin for the local branch `trunk`, so we need to replace `origin` by `mirror`: 51 We would like to fetch from `mirror` instead of the `origin` for the local branch `trunk`, so we need to replace `origin` by `mirror`: 63 52 {{{#!sh 64 53 $ git branch --set-upstream-to=mirror/trunk trunk … … 70 59 $ git branch 0.12-stable mirror/0.12-stable 71 60 Branch 0.12-stable set up to track remote branch 0.12-stable from mirror. 61 }}} 62 63 Disable pushing to the mirror, just to be safe: 64 {{{#!sh 65 $ git remote set-url --push mirror no_push 66 }}} 67 68 If you'd like to get tags from the mirror: 69 {{{#!sh 70 $ git fetch mirror 'refs/remotes/tags/*:refs/tags/*' 72 71 }}} 73 72 … … 90 89 }}} 91 90 92 93 91 Note that you can add the repositories from other developers in as many remotes as needed, e.g. 94 92 {{{#!sh 95 $ git remote add cboos http ://svn.edgewall.org/git/trac/devs/cboos96 $ git remote add jomae http ://svn.edgewall.org/git/trac/devs/jomae97 $ git remote add rjollos http ://svn.edgewall.org/git/trac/devs/rjollos98 $ git remote add psuter http ://svn.edgewall.org/git/trac/devs/psuter93 $ git remote add cboos https://svn.edgewall.org/git/trac/devs/cboos 94 $ git remote add jomae https://svn.edgewall.org/git/trac/devs/jomae 95 $ git remote add rjollos https://svn.edgewall.org/git/trac/devs/rjollos 96 $ git remote add psuter https://svn.edgewall.org/git/trac/devs/psuter 99 97 }}} 100 98 This makes it very easy to fetch topic branches from other people and to continue where they left or propose changes. … … 112 110 [remote "origin"] 113 111 fetch = +refs/heads/*:refs/remotes/origin/* 114 url = http ://svn.edgewall.org/git/trac/devs/jonas112 url = https://svn.edgewall.org/git/trac/devs/jonas 115 113 pushurl = https://jonas@svn.edgewall.org/git/trac/devs/jonas 116 114 [branch "trunk"] … … 118 116 merge = refs/heads/trunk 119 117 [remote "mirror"] 120 url = http ://svn.edgewall.org/git/trac/mirror118 url = https://svn.edgewall.org/git/trac/mirror 121 119 fetch = +refs/heads/*:refs/remotes/mirror/* 122 120 [branch "0.12-stable"] … … 124 122 merge = refs/heads/0.12-stable 125 123 [remote "cboos"] 126 url = http ://svn.edgewall.org/git/trac/devs/cboos124 url = https://svn.edgewall.org/git/trac/devs/cboos 127 125 fetch = +refs/heads/*:refs/remotes/cboos/* 128 126 [remote "jomae"] 129 url = http ://svn.edgewall.org/git/trac/devs/jomae127 url = https://svn.edgewall.org/git/trac/devs/jomae 130 128 fetch = +refs/heads/*:refs/remotes/jomae/* 131 129 [remote "rjollos"] 132 url = http ://svn.edgewall.org/git/trac/devs/rjollos130 url = https://svn.edgewall.org/git/trac/devs/rjollos 133 131 fetch = +refs/heads/*:refs/remotes/rjollos/* 134 132 [remote "psuter"] 135 url = http ://svn.edgewall.org/git/trac/devs/psuter133 url = https://svn.edgewall.org/git/trac/devs/psuter 136 134 fetch = +refs/heads/*:refs/remotes/psuter/* 137 135 }}}