Embercode
✕
Git and GitHubQuick quiz

Quick quiz: branches and merging

6 questions. Covers Branches and merging.

Questions 1 to 5 of 6

  1. 1. You run git switch -c login-page while on main. What does it do?
  2. 2. Which of these are true about a branch in Git?

    Pick every answer that is true.

  3. 3. Complete the command that lists all local branches: git ____

    Type your answer.

  4. 4. main has 3 commits. You create feature from it and add 2 commits on feature. How many commits does feature contain in its history?

    Type a number.

  5. 5. Put these steps in the order you would run them to merge feature into main.

    Use the arrows to put the steps in order.

    1. 1.git merge feature
    2. 2.git add the fixed files and git commit
    3. 3.Fix any conflict markers and save the files
    4. 4.git switch main

4 question(s) left on this page.

Typed answers ignore extra spaces and, for most questions, capital letters.