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

junior

How does the Centralized Workflow work?

expert

What are the type of git hooks?

junior

What is Git fork? What is difference between fork, branch and clone?

Bình luận

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

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