WorksheetsGitThat30Bro
Total questions: 15
Worksheet time: 8mins
Git is a free and open source distributed version control system
True
False
Which of the following is NOT a benefit of using a version control system (VCS)?
Documenting changes
Having errors automatically pointed out
Automatically creating a backup of your work
Keeping file names and hierarchies consistent and organized
Which of the following is the correct way to initialize a Git repository?
initialize git
git initialize
git init
init git
We can check the current state of the files in a Git repository with the command “git status.”
True
False
Which command do we use to tell Git we want to commit the changes in ALL the modified files.
git add *
git add -A
git add -all
git add .
Which command do we use to establish a new version in our Git history with a message explaining how the version has changed?
git commit -m
git commit
commit git message
git m commit
The command git clone https://github.com/my-git-repository does what?
Pushes a copy of your local repository to GitHub
Creates a copy of your local repository on your local machine
Creates a copy of the remote repository “my-git-repository” on your local machine
Creates a connection between your local repository and a remote repository
The correct way to connect a local repository to a remote repository is
git remote add origin [URL]
True
False
Which two configuration properties does the tool expect to be configured after installing Git and prior to issuing the first commit?
email address and password
username and email address
username and IP address
username and password
Which of the following commands is used in switching between branches?
git branch
git merge
git switch
git checkout
Git command use to check the created, modified, and deleted files before commit.
git show
git log
git status
git check
These are pointers to a snapshot of your changes.
Branches
Versions
Changes
Commits
It is a good habit to PULL first to check for changes before PUSH.
True
False
Git is a helpful tool in software development projects.
True
False
