User:Praveer-mathur-9f3d@uni-bonn.de/version-control-with-git

From HPC Wiki
Jump to navigation Jump to search

Short Quiz: The Idea Behind Git

Where is the git repository information located?

Directory at repository top level
Directory inside every directory in the repository
Directory in your home directory

Where are the actual files you edit?

Working tree
Index
Repository

What is the staging area for the next commit called?

Working tree
Index
Repository

Where is the history of commits?

Working tree
Index
Repository

Short Quiz: First Repo and First Commit

Which of the following statements are true?

All global git settings will be put into a file named .gitconfig in your home directory.
Git needs your name and e-mail address before letting you commit anything
Every commit needs a commit message, either via the command line or a text editor
The command git with no arguments will show a history of your commits.

Short Quiz: Handling Remotes

What is the meaning of cloning in the context of git?

Downloading commits and immediately merging them
Downloading commits from remote
Creating a new repository from a remote one
Uploading commits

What is the meaning of pulling in the context of git?

Downloading commits and immediately merging them
Downloading commits from remote
Creating a new repository from a remote one
Uploading commits

What is the meaning of pushing in the context of git?

Downloading commits and immediately merging them
Downloading commits from remote
Creating a new repository from a remote one
Uploading commits

What is the meaning of fetching in the context of git?

Downloading commits and immediately merging them
Downloading commits from remote
Creating a new repository from a remote one
Uploading commits

Short Quiz: Github Features vs. Git Features

Which of these is added by Github, so not built into git?

Cloning a Repository
Forking a Repository
Pull Requests
Remote Repositories
Restricting who can push to main branch