Chapter 26. Given a scenario, carry out version control using Git

This chapter provides information and commands concerning the following topics:




The Linux+ exam will include some questions regarding arguments to the git command. This section covers these exam-testable arguments.


The git clone command creates a local repository from the contents of a remote repository. The argument provided is the location of the remote repository.


$ git clone
Cloning into 'ocs'...
Username for '': borothwell Password for '': remote: ...

Get CompTIA Linux+ Portable Command Guide: All the commands for the CompTIA XK0-004 exam in one compact, portable resource, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.