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

  • 1 / 1 балл git log --numstat

  • 1 / 1 балл

  • Правильно Each bisect cuts the number in half4. Вопрос 4 In the command git gc

  • Правильно This is a common abbreviation5. Вопрос 5 The command git blame some_file

  • 1 / 1 балл git branch --show

  • 1 / 1 балл git branch Правильно

  • Open Source Software


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

    Commits



    1.

    Вопрос 1

    What does the command git revert c87e6ae4 do?

    1 / 1 балл



    Places the repository where it was after commit c87e6ae4 but does not revert later changes



    Has no effect



    Removes the changes associated with the commit that starts with c87e6ae4



    Removes all changes and history after commit c87e6ae4

    Правильно

    It both removes the changes and takes you back

    2.

    Вопрос 2

    To see which files have changed and what the exact changes are, do:

    1 / 1 балл



    git log --numstat



    git log -p



    git log --pretty=oneline



    git log

    Правильно

    This gives details, including file names and changes

    3.

    Вопрос 3

    Some time over the past 1000 commits, a change was introduced that caused a program to fail. Assuming you have a good test to establish a bad version, what is the largest number of bisects that should be needed to locate the commit containing the defective patch?

    1 / 1 балл



    16



    8



    32



    10



    4



    2

    Правильно

    Each bisect cuts the number in half

    4.

    Вопрос 4

    In the command git gc, what does gc stand for?

    1 / 1 балл



    garbage collection



    generic concentration



    GNU cleanup



    garbage corruption

    Правильно

    This is a common abbreviation

    5.

    Вопрос 5

    The command git blame some_file:

    1 / 1 балл



    Tells you where every line in some_file came from by date and author



    Evaluates whether the error is due to a problem with some_file.



    Finds some obvious errors in some_file

    Правильно

    This is extremely useful in tracking down problems and establishing ownership if there are legal problems

    Branches



    1.

    Вопрос 1

    In Git, branching is the inverse process to:

    1 / 1 балл



    merging



    forking



    committing



    pushing

    Правильно

    Merging is the inverse process where branches are coalesced

    2.

    Вопрос 2

    A detailed branching history can be shown by:

    1 / 1 балл



    git branch --show



    git show-branch



    git show branch



    git branch show

    Правильно

    This does the job

    3.

    Вопрос 3

    To examine an earlier version of a file in commit 3888bc981a, do:

    1 / 1 балл



    git show 3888bc981a:kernel/sys.c



    git log 3888bc981a kernel/sys.c



    git display 3888bc981a:kernel/sys.c



    git show 3888bc981a kernel/sys.c

    Правильно

    This is correct

    4.

    Вопрос 4

    You can list all current branches on the local machine with:

    1 / 1 балл



    git branch

    Правильно

    This does the job and is identical to specifying --list



    git branch -v

    Правильно

    The -v here is for verbose and gives more information than without it



    git branch --list

    Правильно

    This does the job

    5.

    Вопрос 5

    The command git checkout some_branch

    1 / 1 балл



    switches to some_branch



    Incorporates changes in some_branch into the current branch



    Gives some information about some_branch

    Правильно

    It "checks out" the new branch
    1   ...   17   18   19   20   21   22   23   24   ...   39


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