When would you use git clone -...
When would you use git clone -...
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
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào