nerdexam
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)
  • A
    88% (29)
  • B
    6% (2)
  • C
    3% (1)
  • D
    3% (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.

Full XK0-006 Practice