Using Gerrit to enhance your Git

By polfilm,

  Filed under: Continuous Integration, Development, Gerrit, GIT, Software Testing & Autobuild
  Comments: None

GIT ADD HOOK TO PUBLISH COMMIT MESSAGE

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 user@yourgerrit:hooks/commit-msg ${gitdir}/hooks/

RESET HARD (ABORT LOCAL CHANGES, REVERT TO ORIGIN)

git reset --hard origin/master

PUSH NEW CHANGES FOR REVIEW

git push origin HEAD:refs/for/master

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.