=generate ssh key
ssh-keygen -C jrzhang@ihep.ac.cn
cp ~/.ssh/id_rsa.pub

=copy ssh key to gerrit
add SSH Public Keys

=git config
git config --global user.user "zhangjr" && git config --global user.name "zhangjr" && git config --global user.email "jrzhang@ihep.ac.cn"

=git add
git add -A stages All
git add -a
git add . stages new and modified, without deleted
git add -u stages modified and deleted, without new
git rm to-be-deleted

=git discard
git checkout .

=git ignore
git rm -r --cached .
git add .
git add -f .gitignore
git commit -m "fixed untracked files"
git push origin master:refs/for/master

=git commit
git commit -m "somewords"

=git log

=git reset
git reset --soft 9c914056d3d636132b768866bfafea651e1c930

=git revert

=fetch remote branch
git fetch origin develop:to-be-developed

=merge to-be-developed to to-be-merged
git merge to-be-developed

=push local branch to gerrit
git push origin to-be-merged:refs/for/develop
