CompTIA
XK0-006 · Question #4
A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?
The correct answer is A. git init. The git init command initializes a new, empty Git repository in the current directory, making it the correct choice for creating a local repository.
Automation and Scripting
Question
A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?
Options
- Agit init
- Bgit clone
- Cgit config
- Dgit add
How the community answered
(33 responses)- A88% (29)
- B6% (2)
- C3% (1)
- D3% (1)
Explanation
The git init command initializes a new, empty Git repository in the current directory, making it the correct choice for creating a local repository.
Topics
#Git#repository initialization#version control
Community Discussion
No community discussion yet for this question.