GIT checkout tag issues - detached HEAD state

Joe

The purpose of this project is to call code not in the standard UNIX path.

My professor has provided steps to clone gawk from a GIT repository and then build and install in an autoconf format.

MY PROBLEM IS - After cloning from git://git.savannah.gnu.org/gawk.git I need to change the version I am going to install. When I use the git checkout tags/gawk-3.1.8 command that the professor has provided us with I receive the following output. When i use the make and make install commands I end up with the latest version of gawk and not 3.1.8.

Note: checking out 'tags/gawk-3.1.8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by perfoming another checkout.
If you want to create a new branch to retain commits you create, you may do
so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 00ef042... Move to 3.1.8

I have searched several detached HEAD state forums but have not been able to reach a solution. Any help is appreciated.

Ian Colwell

This is not an error, everything worked as expected. Notice how the output says Note: and not Error: or something.

The note is simply telling you that are in a "detached HEAD" state which is fine if you are just using the repo and don't intend to push any commits.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related