nerdexam
Cisco

200-901 · Question #427

A developer improves the code repository to clean a bug on the custom network monitoring application. The developer adds the changes to the staging area and then commits on the local branch. Which com

The correct answer is D. git push origin master. The correct command is 'git push origin master', where 'git' is the required command prefix, 'push' is the subcommand, 'origin' is the name of the remote repository, and 'master' is the branch being pushed. Options A and C omit the 'git' prefix and are invalid shell commands. Opt

Software Development and Design

Question

A developer improves the code repository to clean a bug on the custom network monitoring application. The developer adds the changes to the staging area and then commits on the local branch. Which command pushes commits that are made on a local branch to the remote repository?

Options

  • Apush origin master
  • Bgit push all
  • Cpush all
  • Dgit push origin master

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    6% (2)
  • D
    88% (29)

Explanation

The correct command is 'git push origin master', where 'git' is the required command prefix, 'push' is the subcommand, 'origin' is the name of the remote repository, and 'master' is the branch being pushed. Options A and C omit the 'git' prefix and are invalid shell commands. Option B ('git push all') is not a valid git push syntax - 'all' is not a valid shorthand here.

Topics

#Git#Version Control#Code Repository#git push

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice