Version control: git (part 1)
Today's lesson is presented by Matt Geimer
An introduction to git and its basic functionality
Questions
Q1
QGit Q1
This question is ungraded.
There is a repository with the web url: https://github.com/cs128-uiuc/cs128env-docker-2-student.git and you would like to copy the repository to your local computer. What is the bash command to do this?
Q2
QGit Q2
This question is ungraded.
You have modified some files that git already tracks and added a few brand new files. You’d like to add the modifications to the staging area but NOT the new files. What command can you run to do this?
Q3
QGit Q3
This question is ungraded.
You have made some changes that you have already added to the staging area, and now you want to make a commit. What command should you execute?
Q4
QGit Q4
This question is ungraded.
You have some changes that you have NOT added to the staging area within
files that ARE tracked by git (they are not new files). You would like to
add your modifications to the staging area and make a commit using an
all-in-one command (not using &&). Select the command to create a commit
with the message Removed unused argument from finishConcurrentRender.
Q5
QGit Q5
This question is ungraded.
You have made a few commits, and now you want to send your changes to GitHub. What command should you run?