CompTIA Linux+ (XK0-005) — Question 52

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?

Answer options

Correct answer: D

Explanation

The correct action is to use 'push', which uploads the committed changes from the local repository to the remote repository. 'Rebase' is used for integrating changes and modifying commit history, 'tag' is for marking specific points in history, and 'commit' is used to save changes locally, but does not affect the remote repository.