Skip to content

Instantly share code, notes, and snippets.

@lukehinds
Created April 7, 2017 21:22
Show Gist options
  • Save lukehinds/f0ed0586d8a69715759d6f6c8a266a20 to your computer and use it in GitHub Desktop.
Save lukehinds/f0ed0586d8a69715759d6f6c8a266a20 to your computer and use it in GitHub Desktop.
docker run -d -p 8080:8080 -p 29418:29418 \\n gerritforge/gerrit-centos7
Login as adminstrator, create a user, add them to the adminstators group and then create a repo:
ssh -p 29418 lhinds@localhost gerrit create-project test-project --empty-commit
git clone ssh://lhinds@localhost:29418/test-project
cat << EOF > .gitreview
[gerrit]
host=localhost
port=29418
project=test-project
EOF
cd test-project
git review -s
date > testfile.txt
git add testfile.txt
git commit -a
git review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment