Answer the question
In order to leave comments, you need to log in
What happens when you type HEAD in git?
Good afternoon!
I am learning git. I entered the HEAD command and surprisingly it worked. I went to google what it is, a search on the official site did not give any explanation of what was happening, but there is no such command at all - everything should start on git ..
Question: what happens when you enter HEAD? That is, I understand that HEAD is a pointer to a branch, but I can’t understand what happens when you enter $ HEAD
пользователь@iPC MINGW64 ~/hello (master)
$ HEAD
master
master
cd hello
cd hello
Answer the question
In order to leave comments, you need to log in
All git commands start with the word git - git add, git commit, git log, git push.
In the context of a git, HEAD is an alias to the current commit. Those. it's not a team at all. For example, you can write git show HEAD to see the current commit.
But there are many other commands (programs) in your system besides git. One of them is called HEAD. So it happened.
This command has nothing to do with git.
manpages.ubuntu.com/manpages/cosmic/man1/lwp-reque...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question