Font size
WorksheetsGit quizz
Total questions: 10
Worksheet time: 5mins
What HEAD contains?
It contains all the data related to the current list of tracked files
It contains the identifier of the current commit or a reference to a branch HEAD
It contains all kind of metadata used to understand the repository structure
It keeps important configuration elements, like the name of the suer
What "staging" means?
It is the current area of work, with the files of the project
It is the set of files that will form part of the next commit
It is current position in the history log for the current branch
It is the content of the .git/ directory, with the information collected by git
Why applying a `git commit` command directly after a `git init` will fail?
Because there is no file to commit
Because commit requires files to be staged
Because you first need to checkout the branch
Because you always need to configure the user name and email for each repo
What command will help you to understand the evolution of the code in the repo?
view
history
log
list
What command will you choose if you want to start experimenting in refactoring your code?
clone
checkout -b
checkout
split
What command will mix the content of two branches in the local repo?
merge
mix
pull
push
What command will mix the content of two branches in separate repos? (choose 2)
merge
mix
pull
push
What command will you use to travel through the repo history?
history
log
checkout
checkout -b
What is the best practice to collaborate in a two-persons project?
Create a repo with two users
Create two different repos and merge
Create three repos, two of them having the third as origin
Create five repos, one of them with git init --bare
What is NOT git?
A database
A collaboration tool
An intelligent text merging application
A backup mechanism
