Git checkout: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


=Checkout a Tag into a Detached HEAD=
=Checkout a Tag into a Detached HEAD=
The following command checks out a specific [[Git Concepts#Tag|tag]] into a [[Git Concepts#Detached_Head|detached head]].


  git checkout RESTEASY_JAXRS_2_3_2_FINAL
  git checkout RESTEASY_JAXRS_2_3_2_FINAL

Revision as of 17:06, 18 December 2017

Internal

Overview

Checkout a Tag into a Detached HEAD

The following command checks out a specific tag into a detached head.

git checkout RESTEASY_JAXRS_2_3_2_FINAL

To reposition the local repository on the head of the master branch:

git checkout master