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'