Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gerrit_tutorial [2020/04/21 17:39] – [Cloning repo and configuring git-review] rpjday | gerrit_tutorial [2020/04/21 17:55] (current) – [git-review --setup] rpjday | ||
---|---|---|---|
Line 73: | Line 73: | ||
track=1 | track=1 | ||
</ | </ | ||
+ | |||
+ | Finally, there are no configured hooks: | ||
+ | |||
+ | < | ||
+ | $ ls -1 .git/hooks | ||
+ | applypatch-msg.sample | ||
+ | commit-msg.sample | ||
+ | fsmonitor-watchman.sample | ||
+ | post-update.sample | ||
+ | pre-applypatch.sample | ||
+ | pre-commit.sample | ||
+ | pre-merge-commit.sample | ||
+ | prepare-commit-msg.sample | ||
+ | pre-push.sample | ||
+ | pre-rebase.sample | ||
+ | pre-receive.sample | ||
+ | update.sample | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | ===== Configuring git-review ===== | ||
+ | |||
+ | Verify remotes: | ||
+ | |||
+ | < | ||
+ | $ git remote -v | ||
+ | origin ssh:// | ||
+ | origin ssh:// | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | ==== Configuring git-review for origin ==== | ||
+ | |||
+ | Point '' | ||
+ | |||
+ | < | ||
+ | $ git config --global gitreview.remote origin | ||
+ | </ | ||
+ | |||
+ | Adds .gitconfig info: | ||
+ | |||
+ | < | ||
+ | gitreview.remote=origin | ||
+ | </ | ||
+ | |||
+ | ===== git-review --setup ===== | ||
+ | |||
+ | Set up '' | ||
+ | |||
+ | < | ||
+ | $ git review -s | ||
+ | </ | ||
+ | |||
+ | which does the following: | ||
+ | |||
+ | * check remote access for submitting branches (if no remote access, ask for username) | ||
+ | * create remote access called " | ||
+ | * install Gerrit '' | ||
+ | |||
+ |