Skip to content

Instantly share code, notes, and snippets.

@adithya2306
Created July 19, 2019 11:46
Show Gist options
  • Save adithya2306/b716e9a68075e17b89061c2617e914b8 to your computer and use it in GitHub Desktop.
Save adithya2306/b716e9a68075e17b89061c2617e914b8 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>
git push ssh://[email protected]:29418/LineageOS/android_device_cyanogen_msm8916-common HEAD:refs/for/lineage-16.0
git push ssh://[email protected]:29418/LineageOS/android_device_yu_lettuce HEAD:refs/for/lineage-16.0
# Install change-id hooks first:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment