Skip to content

Instantly share code, notes, and snippets.

@meganukebmp
Forked from ghostrider-reborn/los_gerrit_push.txt
Last active July 14, 2022 00:04
Show Gist options
  • Save meganukebmp/d60be188df24545eb273c2153b69e976 to your computer and use it in GitHub Desktop.
Save meganukebmp/d60be188df24545eb273c2153b69e976 to your computer and use it in GitHub Desktop.
Push commit(s) in a repo to LOS Gerrit even if you're not in LOS env
# Push commits to LOS Gerrit
git push ssh://<gerrit-user-id>@review.lineageos.org:29418/LineageOS/<repo-name> HEAD:refs/for/<branch>
# Install change-id hooks first:
gitdir=$(git rev-parse --git-dir); scp -O -p -P 29418 <gerrit-user-id>@review.lineageos.org:hooks/commit-msg ${gitdir}/hooks/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment