git checkout branch

  1. Clone repo

    git clone git@gitlab.sandlininc.com:product/component.git
  2. List Branches

    git branch -a
    * master
      remotes/origin/HEAD -> origin/master
      remotes/origin/add_javadocs
      remotes/origin/implementation-1.0.7
      remotes/origin/implementation-1.0.8
      remotes/origin/implementation-1.0.x
      remotes/origin/implementation-2.0
      remotes/origin/implementation-2.0.0
      remotes/origin/master
      remotes/origin/product-3.5
      remotes/origin/product-4.0
      remotes/origin/trunk
    
  3. Switch to branch
    git checkout -b product-3.5
    Switched to a new branch 'product-3.5'
    

List tags in GIT

List tags in repo

box:product user$ git tag
product-0.3
product-0.4
...
product-1.7
product-1.8

With a little more detail:

box:product user$ git tag -l -n1
product-0.3 [maven-release-plugin]  copy for tag product-0.3
product-0.4 [maven-release-plugin]  copy for tag product-0.4
...
product-1.7 [maven-release-plugin]  copy for tag product-1.7
product-1.8 [maven-release-plugin]  copy for tag product-1.8

With more detail:

box:product user$ for t in `git tag -l`; do git cat-file -p `git rev-parse $t`; done
object 965d40c9c8091c73871761034b78135793368fa0
type commit
tag product-0.3
tagger company <devops@company.com> Mon Oct 7 11:57:00 2013 -0700

[maven-release-plugin]  copy for tag product-0.3
object bff67daf9605abd87adb1122ea4e9081172ab99e
type commit
tag product-0.4
tagger company <devops@company.com> Mon Oct 7 12:26:45 2013 -0700

...
[maven-release-plugin]  copy for tag product-1.7
object 6a9cbd9107c1ea18a9b9b540b19c93a57f0b515d
type commit
tag product-1.8
tagger company <devops@company.com> Tue Dec 3 11:19:43 2013 -0800

Delete tag in git

Delete a tag

box:product user$ git tag -d product-1.8
Deleted tag 'product-1.8' (was 2c41c34)
box:product user$ git push origin :refs/tags/product-1.8
To git@gitlab.companycorp.com:product2/uikit.git
 - [deleted]         product-1.8