Git Cheat Sheet

Just a bunch of commands that i keep forgetting

Show the commit of a tag

$ git rev-list -n 1 <tag>

Add a tag using gerrit

$ git clone https://github.com/user/project
$ cd project
$ git checkout stable/supername
$ git tag -s 1.0.0.0rc1 -m 1.0.0.0rc1
$ git review -s
$ git push gerrit 1.0.0.0rc1