Monday, June 13, 2016

GIT tag basics

  • Clone the repository => git clone Tut
  • Goto the checkout repository  =>cd Tut/
  • To list all the available tags=> git tag -l 
  • To list all the available branches git branch
  • Creating a tag “first_tag” with the commit revision => git tag -a first_tag 673b992
  • Pushing all the created tags => git push origin --tags
  • Checking out the tag “first_tag” by creating a local branch “first_tag_branch” => git checkout -b first_tag_branch first_tag