The following will update your remotes automatically.  Go to the root of
the repository you need to update from incubator to top level and execute:


for remote in `git remote`; do new_url=`git config --get remote.$remote.url
| sed 's|incubator-||'`; echo $remote $new_url; git remote set-url $remote
$new_url; done;



Example:


$ cd incubator-apex-malhar (master)
$ git remote -v
origin  https://git-wip-us.apache.org/repos/asf/incubator-apex-malhar.git
(fetch)
origin  https://git-wip-us.apache.org/repos/asf/incubator-apex-malhar.git
(push)
apache-git  git://git.apache.org/incubator-apex-core.git (fetch)
apache-git  git://git.apache.org/incubator-apex-core.git (push)
mirror  [email protected]:apache/incubator-apex-malhar.git (fetch)
mirror  [email protected]:apache/incubator-apex-malhar.git (push)
sashadt [email protected]:sashadt/incubator-apex-malhar.git (push)
sashadt [email protected]:sashadt/incubator-apex-malhar.git (fetch)

$ for remote in `git remote`; do new_url=`git config --get
remote.$remote.url | sed 's|incubator-||'`; echo $remote $new_url; git
remote set-url $remote $new_url; done;
origin https://git-wip-us.apache.org/repos/asf/apex-malhar.git
apache-git git://git.apache.org/apex-core.git
mirror [email protected]:apache/apex-malhar.git
sashadt [email protected]:sashadt/apex-malhar.git

$ git remote -v
origin  https://git-wip-us.apache.org/repos/asf/apex-malhar.git (fetch)
origin  https://git-wip-us.apache.org/repos/asf/apex-malhar.git (push)
apache-git  git://git.apache.org/apex-core.git (fetch)
apache-git  git://git.apache.org/apex-core.git (push)
mirror  [email protected]:apache/apex-malhar.git (fetch)
mirror  [email protected]:apache/apex-malhar.git (push)
sashadt [email protected]:sashadt/apex-malhar.git (push)
sashadt [email protected]:sashadt/apex-malhar.git (fetch)


$ cd .. && mv incubator-apex-malhar apex-malhar




Thanks,
Sasha

On Fri, Jun 3, 2016 at 5:17 PM, David Yan <[email protected]> wrote:

> The following commands may be handy:
>
> git remote set-url apache
> https://git-wip-us.apache.org/repos/asf/apex-core.git/
> git remote set-url apache
> https://git-wip-us.apache.org/repos/asf/apex-malhar.git/
> git remote set-url apache
> https://git-wip-us.apache.org/repos/asf/apex-site.git/
>
> David
>
> On Fri, Jun 3, 2016 at 4:48 PM, Thomas Weise <[email protected]>
> wrote:
>
> > The ASF git repos are done, github mirrors should follow shortly.
> >
> > You may need to change your remotes and mirroring may be interrupted for
> a
> > while.
> >
> > Thanks,
> > Thomas
> >
>

Reply via email to