Exercises

Git Basics Knowledge Assessment

Assess your understanding of essential Git version control concepts with this Git Basics Knowledge Assessment. Test your knowledge of initializing and cloning repositories, checking repository status, staging and committing changes, using .gitignore, reviewing commit history, creating and switching branches, and temporarily saving work with Git stash. This quiz is ideal for beginners learning Git commands and core workflows, as well as developers who want a quick refresher on everyday repository management.

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

0/11 answered

  1. 1

    What is Git primarily used for?

  2. 2

    Which command is used to initialize a new Git repository?

  3. 3

    Which command is used to check the current status of your Git repository?

  4. 4

    How do you clone a repository to your local machine?

  5. 5

    Which command is used to stage changes for the next commit?

  6. 6

    What is the purpose of the .gitignore file?

  7. 7

    How do you commit staged changes with a message?

  8. 8

    Which command lists the history of your commits?

  9. 9

    How do you create a new branch in Git?

  10. 10

    How do you switch to an existing branch?

  11. 11

    What does 'stash' do 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