Difference between revisions of "User:Praveer-mathur-9f3d@uni-bonn.de/version-control-with-git"
Jump to navigation
Jump to search
(Created page with "Test Edit") |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | === Short Quiz: The Idea Behind Git === <!--T:5--> | |
| + | |||
| + | {{hidden begin | ||
| + | |title = Where is the git repository information located? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | + Directory at repository top level | ||
| + | || Explanation: Correct | ||
| + | - Directory inside every directory in the repository | ||
| + | || Explanation: Wrong | ||
| + | - Directory in your home directory | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = Where are the actual files you edit? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | + Working tree | ||
| + | || Explanation: Correct | ||
| + | - Index | ||
| + | || Explanation: Wrong | ||
| + | - Repository | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = What is the staging area for the next commit called? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | - Working tree | ||
| + | || Explanation: Wrong | ||
| + | + Index | ||
| + | || Explanation: Correct | ||
| + | - Repository | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = Where is the history of commits? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | - Working tree | ||
| + | || Explanation: Wrong | ||
| + | - Index | ||
| + | || Explanation: Wrong | ||
| + | + Repository | ||
| + | || Explanation: Correct | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | === Short Quiz: First Repo and First Commit === <!--T:5--> | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = Which of the following statements are true? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="[]"} | ||
| + | + All global git settings will be put into a file named <code>.gitconfig</code> in your home directory. | ||
| + | || Explanation: True. Specifically: settings will be put into the file in your home with <code>git config --global</code>, or the project-specific one with <code>git config --local</code>. | ||
| + | + Git needs your name and e-mail address before letting you commit anything | ||
| + | || Explanation: True | ||
| + | + Every commit needs a commit message, either via the command line or a text editor | ||
| + | || Explanation: True | ||
| + | - The command <code>git</code> with no arguments will show a history of your commits. | ||
| + | || Explanation: False. The command <code>git log</code> will do that. | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | === Short Quiz: Handling Remotes === <!--T:5--> | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = What is the meaning of cloning in the context of git? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | - Downloading commits and immediately merging them | ||
| + | || Explanation: Wrong | ||
| + | - Downloading commits from remote | ||
| + | || Explanation: Wrong | ||
| + | + Creating a new repository from a remote one | ||
| + | || Explanation: Correct | ||
| + | - Uploading commits | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = What is the meaning of pulling in the context of git? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | + Downloading commits and immediately merging them | ||
| + | || Explanation: Correct | ||
| + | - Downloading commits from remote | ||
| + | || Explanation: Wrong | ||
| + | - Creating a new repository from a remote one | ||
| + | || Explanation: Wrong | ||
| + | - Uploading commits | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = What is the meaning of pushing in the context of git? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | - Downloading commits and immediately merging them | ||
| + | || Explanation: Wrong | ||
| + | - Downloading commits from remote | ||
| + | || Explanation: Wrong | ||
| + | - Creating a new repository from a remote one | ||
| + | || Explanation: Wrong | ||
| + | + Uploading commits | ||
| + | || Explanation: Correct | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = What is the meaning of fetching in the context of git? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="()"} | ||
| + | - Downloading commits and immediately merging them | ||
| + | || Explanation: Wrong | ||
| + | + Downloading commits from remote | ||
| + | || Explanation: Correct | ||
| + | - Creating a new repository from a remote one | ||
| + | || Explanation: Wrong | ||
| + | - Uploading commits | ||
| + | || Explanation: Wrong | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | === Short Quiz: Github Features vs. Git Features === <!--T:5--> | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = Which of these is added by Github, so not built into git? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="[]"} | ||
| + | - Cloning a Repository | ||
| + | || Wrong. Built into Git. | ||
| + | + Forking a Repository | ||
| + | || Correct. Added by Github. | ||
| + | + Pull Requests | ||
| + | || Correct. Added by Github. | ||
| + | - Remote Repositories | ||
| + | || Wrong. Built into Git. | ||
| + | + Restricting who can push to main branch | ||
| + | || Correct. Added by Github. | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
Latest revision as of 15:55, 24 March 2026
Short Quiz: The Idea Behind Git
Where is the git repository information located?
Where are the actual files you edit?
What is the staging area for the next commit called?
Where is the history of commits?
Short Quiz: First Repo and First Commit
Which of the following statements are true?
Short Quiz: Handling Remotes
What is the meaning of cloning in the context of git?
What is the meaning of pulling in the context of git?
What is the meaning of pushing in the context of git?
What is the meaning of fetching in the context of git?
Short Quiz: Github Features vs. Git Features
Which of these is added by Github, so not built into git?