Sync Remote Branch From Remote Git Server
I have mirror all android repository into my local repository, but with new version release I found it it hard to update from upstream. Here is the detail: After I mirror android s
Solution 1:
Normally the master branch of AOSP will be a superset of the most recent release branch, but I'm not sure that's the case right now and your question seems to confirm that. Don't expect it to be true all the time, especially not right after a release.
To push the Kitkat branches to your server, start by syncing a workspace from the AOSP servers:
repo init --mirror -u https://android.googlesource.com/platform/manifest -b kitkat-dev
Normally I'd suggest syncing the mirror manifest as described in the Using a local mirror part of the documentation, but right now the mirror manifest doesn't contain all gits that were added in Kitkat. I expect them to be added shortly.
When the sync is done, step into the workspace and push the new branches to your server:
repo forall -c 'git push ssh://yourserver.example.com/$REPO_PROJECT aosp/kitkat-dev:refs/heads/kitkat-dev aosp/kitkat-release:refs/heads/kitkat-release
You can also use wildcards to push all AOSP branches to your server:
repo forall -c 'git push ssh://yourserver.example.com/$REPO_PROJECT aosp/*:refs/heads/*
Post a Comment for "Sync Remote Branch From Remote Git Server"