V
V
Vadim2019-10-18 10:47:56
git
Vadim, 2019-10-18 10:47:56

What does "Not currently on any branch" mean?

Hello everyone,
How is it possible that when you download a remote repository and run git status in its folder, you get:
Not currently on any branch.
What settings does it depend on?
good day !

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lorc, 2019-10-18
@Viji

Actually, that's exactly what it means. Git doesn't switch to any branch after clone.
Why did it happen? Because the HEAD of the repository on the remote server does not look at the branch, but at some specific commit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question