nerdexam
Cisco

300-535 · Question #12

Which Git command is needed to stage the file network-deploy.py to then commit the changes to the revision history?

The correct answer is B. git add network-deploy.py. See the full explanation below for the reasoning.

Question

Which Git command is needed to stage the file network-deploy.py to then commit the changes to the revision history?

Options

  • Agit init network-deploy.py
  • Bgit add network-deploy.py
  • Cgit merge network-deploy.py
  • Dgit commit network-deploy.py

How the community answered

(46 responses)
  • A
    7% (3)
  • B
    78% (36)
  • C
    13% (6)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 300-535 Practice