1, about gerrit, there's always a gerrit server somewhere; after you log-in, you should add your SSH public key before you fetch & commit. It's easy to settle down if your workstation is linux, but if you work on a windows, it is a little complex. It's recommended in a lot website that you should download a tool named PuttyGen.exe at the first. but I found it doesn't work in my windows workstation after I added my public key which is generated by PuttyGen. Always "permission denied" is prompted. A simple way for this is copying a pair of key(private key and public key) from another linux workstation. Maybe public key is not allow to copied, rename it, making it do not have .pub suffix, in linux workstation with sudo command. Put this pair of key(id_rsa and id_rsa.pub) in:
C:\Documents and Settings\yourname\.ssh\
and copy content in id_rsa.pub to gerrit server, then you can connect it with ssh protocol.
$ ssh –p port youraccountname@gerrit_server
2, about git. in linux, you can input git command in terminal directly while in windows, you can download a git bash in git official website. its the same with linux terminal. Just some branch switch commands here.
$ git branch -b BranchA #switch to BranchA, if BranchA doesn't exist, it will be #create automatically
$ git branch -d BranchB #delete local branch BranchB
remote branch switch, in your work path, you should browse all branches at first. After command, all remote and local branches will be listed: