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.
If its your first time dealing with gerrit then you can find the docs for gerrit setup here.
If you are ready with all your changes and your gerrit setup then you are ready for your next step i.e pushing.
- Stage your changes
git add devices.json
git add teams.json
- 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
- Commit and hook your commit
scp -p -P 29418 ${guser}@gerrit.pixysos.com:hooks/commit-msg ${gitdir}/hooks/
git commit -m "official_devices: $cmsg"
- Push your changes
git push ssh://${guser}@gerrit.pixysos.com:29418/PixysOS/official_devices HEAD:refs/for/master
- Now wait till some moderator review your changes.