Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.25 KB

how_to_push.md

File metadata and controls

35 lines (28 loc) · 1.25 KB

How to push

If you have reached this page means you have made certain changes and now you want to push it for review. At this stage we assume you have gone though the terms and condtions mentioned in agreements of modfying devices.json (agreement) or teams.json (agreement). If not then you may check those first.

Gerrit setup

If its your first time dealing with gerrit then you can find the docs for gerrit setup here.

Next step

If you are ready with all your changes and your gerrit setup then you are ready for your next step i.e pushing.

  1. Stage your changes
git add devices.json
git add teams.json
  1. Export needed variables.
read -p 'Your gerrit username: ' guser
read -p 'Enter commit message: ' cmsg
gitdir=$(git rev-parse --git-dir)
export guser gitdir cmsg
  1. Commit and hook your commit
scp -p -P 29418 ${guser}@gerrit.pixysos.com:hooks/commit-msg ${gitdir}/hooks/
git commit -m "official_devices: $cmsg"
  1. Push your changes
git push ssh://${guser}@gerrit.pixysos.com:29418/PixysOS/official_devices HEAD:refs/for/master
  1. Now wait till some moderator review your changes.