Главная страница
Навигация по странице:

  • .gitignore

  • Git Which command initializes a new Git repository: git init

  • git config user.name "myname"; git config user.email "me@linux"

  • git commit

  • git archive HEAD | gzip > myproject.tar.gz

  • git format-patch master

  • --dry-run

  • Open Source Software


    Скачать 1.28 Mb.
    НазваниеOpen Source Software
    Дата26.05.2022
    Размер1.28 Mb.
    Формат файлаdocx
    Имя файлаFinal_OS 2.docx
    ТипДокументы
    #551026
    страница19 из 39
    1   ...   15   16   17   18   19   20   21   22   ...   39
    git ls-files


    Вопрос 4


    What does the git rm some_file command do? Removes some_file from the repository and from the working file tree

    Which of the following statement about an "ignored" file in git is correct? An ignored file is enumerated in a .gitignore file

    Which revision control system requires a user to lock a file when it is checked out, so that other developers cannot work on it easily at the same time? RCS

    Which revision control systems have a central repository which may be on a network server (Select all answers that apply): Subversion CVS
    When using git:


    Conflicts between different developers require manual examination and fixing by a maintainer


    Вопрос 4


    Select the true statement: is possible to convert Git repositories for use by Subversion and CVS

    Select the true statement: It is possible to import (convert) CVS and Subversion repositories into Git


    Вопрос 1


    How can you get a brief list of all git subcommands? Git

    Which command initializes a new Git repository: git init

    How would you store in the repository the user's name and email address?


    git config user.name "myname"; git config user.email "me@linux"


    Вопрос 4


    Which command places new files in the repository? git add

    Which command puts changes in the repository?


    git commit


    Вопрос 1


    When you clone a remote repository, you receive:


    A complete copy, including all branches and their detailed history

    Вопрос 2


    To make a compressed tarball of the most current version of your repository, do:


    git archive HEAD | gzip > myproject.tar.gz


    Вопрос 3


    Someone's remote branch could be merged into a certain branch on a repository by using (select all that apply): Having the person issue a pull request and then having the maintainer take care of it.

    Having the person doing a push if and only if that person has commit privileges for the remote repository


    Вопрос 4


    A bare repository: Has no working files and is used only for cloning, fetching and pushing

    To make a repository on your machine visible to others across the internet using the git protocol you must:


    Configure and enable the git daemon service


    Вопрос 1


    To get all patches between your current branch and the master branch, do: git format-patch master

    The best way to form patches for use with git is to:


    Use git-format-patch


    Вопрос 3


    In modern advanced distributed projects, submitting patches through email is: Something only used for relatively simple submissions, often to subsystem maintainers


    Вопрос 4


    When applying patches: It is a good idea to test first with the --dry-run option


    Вопрос 5


    Select the true statement Most modern email clients do not have built-in support for git, so one needs to worry about whitespace, line-wrapping and other potential problems


    Вопрос 1


    Gerrit is: An enhanced method of using git for more complex projects


    Вопрос 2


    What are some of the advantages of using Gerrit? Select all answers that apply.


    It introduces a more robust layer of code review by potentially mutliple individuals

    It can reduce single maintainer bottlenecks


    Вопрос 3


    Gerrit works best when: There is one change per commit


    Вопрос 4


    With Gerrit, contributors submit their work to:


    The reviewing layer, rather than fully upstream


    Вопрос 5


    With Gerrit, reviewers:


    Work with both the upstream and contributor layers
    1   ...   15   16   17   18   19   20   21   22   ...   39


    написать администратору сайта