This is the solution to Quiz 3: Problems - Advanced Git.

The following figure illustrates the grade distribution for this quiz.

This quiz aims at testing your knowledge of advanced Git commands, such as branching. Don’t forget to push your answers to your remote repository by the end of quiz time.

1. Write down two out of the three different existing commands for getting help about git add command.

$git add --help  $ git help add

\$ man git-add


2. Write down the Git command that gives information about the last 3 commits in the project’s history.

git log -3


3. Write down a shortcut Git command that creates a new branch development and switches to it automatically.

git checkout -b development


4. Write down the Git command for deleting the branch development.

git branch -d development


5. Is it possible to delete a Git branch while the branch is already checked out to the working directory?

No. One cannot delete a branch while it is checked out to the working directory.

6. What is the Git command that lists ALL tags in the project?

git tag