Skip to content

Instantly share code, notes, and snippets.

@ghostrider-reborn
Created July 19, 2019 11:46
Show Gist options
  • Save ghostrider-reborn/b716e9a68075e17b89061c2617e914b8 to your computer and use it in GitHub Desktop.
Save ghostrider-reborn/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://ghostrider-reborn@review.lineageos.org:29418/LineageOS/android_device_cyanogen_msm8916-common HEAD:refs/for/lineage-16.0
git push ssh://ghostrider-reborn@review.lineageos.org: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 ghostrider-reborn@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