nerdexam
CompTIACompTIA

XK0-005 · Question #1764

XK0-005 Question #1764: Real Exam Question with Answer & Explanation

The correct answer is C: git push origin master. git push origin master pushes committed changes to the remote repository. git stash temporarily saves changes but does not push them. git commit -a commits changes but does not send them to the remote repository. git add . stages changes but does not commit or push them.

Scripting, Containers, and Automation

Question

Which of the following Git commands would send committed changes to a remote repository?

Options

  • Agit stash
  • Bgit commit -a
  • Cgit push origin master
  • Dgit add

Explanation

git push origin master pushes committed changes to the remote repository. git stash temporarily saves changes but does not push them. git commit -a commits changes but does not send them to the remote repository. git add . stages changes but does not commit or push them.

Topics

#Git#Version Control#Remote Repositories#git push

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions