updating lammps-error for make purge

Hi I want to update lammps and I followed the

"

Git checkout and update"

I did

git pull

however I get this message :

~/mylammps$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

git pull

which I think there is something wrong here. I just followed the instruction :

git checkout r15407
cd src
make purge

make: *** [purge] Error 1

Am I doing something wrong here?
thanks

Hi I want to update lammps and I followed the

"

Git checkout and update

"

I did

git pull

however I get this message :

~/mylammps$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

which I think there is something wrong here. I just followed the instruction

no, you just need to read up on git. after you check out a specific
tag, you are - as git tells you - no longer on a particular branch.
here is the output to the screen you should have gotten from the git
checkout r15407

Note: checking out 'r15407'.

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 performing another checkout.

if you want to use "git pull" you would have to check out a specific
branch. you can get the list of available branches with:

git branch

:

git checkout r15407
cd src
make purge

   make: *** [purge] Error 1

Am I doing something wrong here?

yes, it is "make package-purge" now and not "make purge". the docs on
the LAMMPS home page need to be updated.
however, we are preparing significant changes to how tightly git
support is integrated into LAMMPS development, so there will be
additional changes very soon.

axel.