Skip to content

Instantly share code, notes, and snippets.

@meganukebmp
meganukebmp / los_gerrit_push.txt
Last active July 14, 2022 00:04 — forked from ghostrider-reborn/los_gerrit_push.txt
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/