Exercises

Branching and Merging in Git

Sharpen your Git skills with this quiz on branching and merging. Test your understanding of default branch names, creating, switching, viewing, comparing, and deleting branches. Explore why teams use merges to combine work, learn the command for merging changes into an active branch, and check your knowledge of merge conflicts and fast-forward merges. Whether you are new to version control or reviewing core Git workflows, these questions cover essential commands and concepts for managing parallel development safely and effectively.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What is the default branch name in Git?

  2. 2

    What command creates a new branch in Git?

  3. 3

    Which command is used to switch to an existing branch?

  4. 4

    How do you delete a branch in Git?

  5. 5

    What is the purpose of merging in Git?

  6. 6

    Which command is used to merge changes from one branch to your active branch?

  7. 7

    What is a merge conflict in Git?

  8. 8

    How can you view all the branches that exist in your Git repository?

  9. 9

    Which command is used to compare two branches?

  10. 10

    What is a 'fast-forward' merge in Git?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate