Alternatively, if the daemon is running and the database is in use, use an
administrator user account to connect over SSH:

ssh -p 29418 user@localhost gerrit gsql

Switching between branches

When using git checkout without --recurse-submodules to switch between
branches, submodule revisions are not altered, which can result in:

Incorrect or unneeded plugin revisions.

Missing plugins.

After you switch branches, ensure that you have the correct versions of
the submodules.

Caution

If you store Eclipse or IntelliJ project files in the Gerrit source
directories, do not run git clean -fdx. Doing so may remove untracked files and damage your project. For more information, see
git-clean.