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

When would you use git clone -...

Câu trả lời

Here is a concise answer to the interview question:

You would use git clone --bare over git clone --mirror when you want to create a bare repository on the server for sharing changes, but don't require a complete mirror of the original repository with all branches, tags, and other refs[1][2][3].

A bare clone created with git clone --bare contains only the Git data files, without a working directory[1]. It is suitable for administrative management and automated scripts where a full working copy is not needed[1].

In contrast, git clone --mirror creates a complete mirror of the source repository, including all branches, tags, and other refs[1][2]. The mirrored clone is always kept up...

senior

senior

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

senior

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

middle

Could you explain the Gitflow workflow?

expert

What are the type of git hooks?

Bình luận

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

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