Git checkout: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
The following command checks out a specific [[Git Concepts#Tag|tag]] - technically the [[Git Concepts#Commit|commit]] that corresponds to the given tag - into a [[Git Concepts#Detached_HEAD|detached HEAD branch]]. | The following command checks out a specific [[Git Concepts#Tag|tag]] - technically the [[Git Concepts#Commit|commit]] that corresponds to the given tag - into a [[Git Concepts#Detached_HEAD|detached HEAD branch]]. | ||
git checkout <''tag-name''>|<''commit-id''> | |||
git checkout RESTEASY_JAXRS_2_3_2_FINAL | git checkout RESTEASY_JAXRS_2_3_2_FINAL |
Revision as of 17:14, 18 December 2017
Internal
Overview
Check Out the HEAD of a Branch
git checkout <branch-name>
Checkout a Tag into a Detached HEAD
The following command checks out a specific tag - technically the commit that corresponds to the given tag - into a detached HEAD branch.
git checkout <tag-name>|<commit-id>
git checkout RESTEASY_JAXRS_2_3_2_FINAL
To reposition the local repository on the head of the master branch:
git checkout master