ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 133 - XK0-005 discussion

Report
Export

A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

A.
rebase
Answers
A.
rebase
B.
tag
Answers
B.
tag
C.
commit
Answers
C.
commit
D.
push
Answers
D.
push
Suggested answer: D

Explanation:

The push action is used to publish the changes made in a local branch to a remote branch of a Git repository. This action will update the remote branch with the commits made in the local branch and synchronize the two branches. The rebase action is used to reapply commits from one branch onto another branch, creating a linear history of commits. This action does not publish any changes to a remote repository. The tag action is used to create an annotated reference to a specific commit in a Git repository. This action does not publish any changes to a remote repository. The commit action is used to record changes made in the local repository and create a new snapshot of the project state.

This action does not publish any changes to a remote repository. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 20: Writing and Executing Bash Shell Scripts, page 579.

asked 02/10/2024
Shawn Sullivan
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first