Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Last active December 12, 2015 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/4742093 to your computer and use it in GitHub Desktop.
Save chris-piekarski/4742093 to your computer and use it in GitHub Desktop.
Create Gerrit branch from AOSP mirror
repo init -u git://server/manifest -b <tag> android-4.1.2_r1
repo sync
repo forall -c 'git branch company/branchname"
repo forall -c 'git checkout company/branchname"
repo forall -c 'git push ssh://cpiekarski@server:29418/$REPO_PROJECT company/branchname:company/branchname'
@chris-piekarski
Copy link
Author

If ssh key has passphrase run ssh-agent first:

ssh-agent
ssh-add ~/.ssh/id_rsa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment