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
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)- A3% (1)
- B3% (1)
- C6% (2)
- D88% (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
Community Discussion
No community discussion yet for this question.