1. What is Git primarily used for?

    Answer: c) Version control

  2. Which command is used to initialize a new Git repository?

  3. Which command is used to check the status of your files in the working directory and staging area?

  4. How do you stage changes for the next commit?

  5. Which command is used to commit changes to the local repository?

  6. How do you clone a repository from GitHub?

  7. Which command is used to create a new branch in Git?

  8. How do you switch to another branch in Git?

  9. How do you view the commit history in Git?

  10. What is GitHub Desktop used for?

    Answer: a) Version control using a graphical interface

  11. How do you discard changes in your working directory?

  12. Which command is used to delete a branch in Git?

  13. What is a 'commit' in Git?

    Answer: b) A snapshot of the repository at a specific point in time

  14. What is the purpose of the .gitignore file?

    Answer: b) To ignore specified files and directories from being tracked by Git

  15. What is a 'remote' in Git?

    Answer: b) A repository stored on another machine

  16. Which command is used to display differences between commits, commit and working tree, etc.?

  17. What is the purpose of the git config command?

  18. Which command is used to undo the last commit while keeping the changes in the working directory?

  19. Which command is used to list all branches in the repository?

  20. Which command is used to view a specific commit in Git?