Git & GitHub Quiz
Git & GitHub Quiz
测验, 5 个问题
1
point
1。
Why use Git?
Git optimizes your code so that when you execute a program it has
a better chance of running faster than the same program built
without Git.
Git backs up your work and allows you to return your files to a
previous state.
1
point
2。
What is a Git repository?
1
point
3。
Git & GitHub
测验, 5 个问题 What's the best way to identify an individual Git commit?
1
point
4。
What's the purpose of a .gitignore file?
The .gitignore file allows you to create aliases for groups of files so
that you can add them to be tracked more easily.
The .gitignore file specifies files and folders that do not need to be
added to be tracked individually.
The .gitignore file specifies files and folders that should not be
tracked.
1
point
5。
Consider the situation where the following commands are executed in a new,
empty directory:
1 git init
2 touch todo.txt
3 touch message.txt
4 git add todo.txt
5 git commit -m "first commit"
6 git add message.txt
7 echo "- Buy cherries" >> todo.txt
8 git commit -m "second commit"
9 echo "- Dear Philip," >> message.txt
The file message.txt has been committed to the repository but the
file todo.txt has only been added to the repository.
Git & GitHub
测验, 5 个问题
The files todo.txt and message.txt have been committed to the
repository and the committed version each contain one line of text.
The file todo.txt has been committed to the repository but the file
message.txt has only been added to the repository.
提交测试