Câu hỏi phỏng vấn Git
Câu hỏi

What is the ...

Câu trả lời

In Git, the HEAD is a reference that points to the current commit you are viewing in your repository[1][2][3][4]. It is a pointer to the currently checked-out branch or commit, which contains an immutable snapshot of your entire code base at a given time[4].

By default, when you clone a repository, Git sets up your local master branch, and HEAD points to the tip of that branch[1][2]. You can think of HEAD as the "current branch"[1]. When you switch branches with git checkout, the HEAD revision changes to point to the tip of the new branch[1][2].

It is possible for HEAD to refer to a specific commit that is not associated with a branch name. This situation is called a detached HEAD[1][3]. You can check out a specific commit using the checkout command and specifying t...

senior

senior

Gợi ý câu hỏi phỏng vấn

middle

Explain the advantages of Forking Workflow

junior

What is the difference between git pull and git fetch ?

senior

What is difference between git stash pop and git stash apply ?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào