Open Source Software
Скачать 1.28 Mb.
|
Git Concepts and Architecture1. Вопрос 1 In git, the fundamental content-full object that is stored, is called a: 1 / 1 балл blob directory deposit file Правильно Binary blobs are the fundamental object 2. Вопрос 2 When a repository is "forked", the new repository 1 / 1 балл Is structurally equal to the old one, but does not contain the entire history Is structurally equal to the old one and contains the entire history Правильно There is no structural difference 3. Вопрос 3 Publishing a repository means: 1 / 1 балл Making the results visible and available to other contributors Posting a "come and get it" notice on a mailing list Doing a git commit Правильно This generally involves a push (or commit) to a repository visible over the network to permitted collaborators 4. Вопрос 4 Upstream and downstream git repositories are: 1 / 1 балл Fundamentally different; it is structurally impossible to bring changes from the downstream repository to the upstream one Structurally the same; it is a socio-political decision which repositories are upstream or downstream Правильно This is the correct answer 5. Вопрос 5 The long hexadecimal numbers associated with git commits: 1 / 1 балл Serve as both identifiers and helpful checksums Are designed to confuse hackers Are computed using this weeks football scores to achieve randomness Правильно This is correct Managing Files and the Index1. Вопрос 1 An "ignored" file in git is one that: 1 / 1 балл Is enumerated in a .gitignore file Has never been added to the repository Exists in the working tree, but has never been added to the project Does not belong to the project owner Правильно It must be in a .gitignore file, either by complete name or wildcard 2. Вопрос 2 The command git rm some_file: 1 / 1 балл Removes some_file from the working file tree and the index Removes some_file from working file tree, but not from the repository Removes some_file from the repository, but not from the working file tree Правильно It is removed from the working tree and the index 3. Вопрос 3 The command rm some_file 1 / 1 балл Removes some_file from the repository, but not from the working file tree Removes some_file from the repository and from the working file tree Removes some_file from working file tree, but not from the repository Правильно It is removed only from the working tree, the repository is unchanged 4. Вопрос 4 To list all files in the repository, issue the command: 1 / 1 балл git dump-list git log --numstat git ls-files git ls Правильно This is the correct command 5. Вопрос 5 The command git mv some_file new_name_or_location 1 / 1 балл Moves the file only in the repository Moves the file only in the working tree Moves (renames) the file in both the repository and the working tree Правильно |