nerdexam
CompTIA

XK0-006 · Question #117

A Linux engineer needs to record new changes completed on a Git repository. Which of the following commands should the engineer use?

The correct answer is C. git commit. This command records the staged changes in the local repository by creating a new commit, preserving a snapshot of the work and its history.

Automation, Orchestration, and Scripting

Question

A Linux engineer needs to record new changes completed on a Git repository. Which of the following commands should the engineer use?

Options

  • Agit push
  • Bgit add
  • Cgit commit
  • Dgit clone

How the community answered

(31 responses)
  • A
    3% (1)
  • C
    94% (29)
  • D
    3% (1)

Explanation

This command records the staged changes in the local repository by creating a new commit, preserving a snapshot of the work and its history.

Topics

#git commit#version control#Git#repository management

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice