Git and Github Exam Questions With Complete Solutions
________ is an example of a distributed version control system.
a) express
b) git
c) ruby Correct Answers b) git
_________ is to remote version control as ___________ is to
distributed version control.
a) Github, Git
b) Ruby, Git
c) Git, Github Correct Answers a) Github, Git
___________ a GitHub repository is just a way to create your
own copy of it. Correct Answers Forking
CLI Code:
ls Correct Answers gives us a list of all the files in the directory
Code:
$ git status Correct Answers check the status of any changes
*used frequently
Code:
git add <file name or path> OR git add . Correct Answers git
add <file name or path>
, will add changes individually when I'm ready to keep track of
changes
git add .
captures ALL changes in directory; refers to the entire current
directory
Code:
git init Correct Answers create a new git repository out of a
directory
*only done once per project
Define:
Version Control Correct Answers the process of storing
multiple versions of a single project, allowing each version to be
recalled at a later date
Difference between local vs. remote version control Correct
Answers Local version control - stores info on my computer
(locally!); makes it difficult to collaborate with others
Remote version control - a repository as a large folder that stores
all the files of a particular project; MULTIPLE people can
collaborate on the same project at once...but you must be
connected to the network
Difference between remote version control vs. distributed
version control systems Correct Answers Remote version
control - a repository as a large folder that stores all the files of a
________ is an example of a distributed version control system.
a) express
b) git
c) ruby Correct Answers b) git
_________ is to remote version control as ___________ is to
distributed version control.
a) Github, Git
b) Ruby, Git
c) Git, Github Correct Answers a) Github, Git
___________ a GitHub repository is just a way to create your
own copy of it. Correct Answers Forking
CLI Code:
ls Correct Answers gives us a list of all the files in the directory
Code:
$ git status Correct Answers check the status of any changes
*used frequently
Code:
git add <file name or path> OR git add . Correct Answers git
add <file name or path>
, will add changes individually when I'm ready to keep track of
changes
git add .
captures ALL changes in directory; refers to the entire current
directory
Code:
git init Correct Answers create a new git repository out of a
directory
*only done once per project
Define:
Version Control Correct Answers the process of storing
multiple versions of a single project, allowing each version to be
recalled at a later date
Difference between local vs. remote version control Correct
Answers Local version control - stores info on my computer
(locally!); makes it difficult to collaborate with others
Remote version control - a repository as a large folder that stores
all the files of a particular project; MULTIPLE people can
collaborate on the same project at once...but you must be
connected to the network
Difference between remote version control vs. distributed
version control systems Correct Answers Remote version
control - a repository as a large folder that stores all the files of a