Git and Version Control Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Automation Tools

What you'll be asked

  1. Which Git command is used to initialize a new local repository in your current directory?
  2. You have made changes to a file but have not yet staged them. Which command will show you the files that have been modified but are not yet staged for commit?
  3. When working in a team, what is the primary purpose of a 'pull request' in platforms like GitHub or GitLab?
  4. If you want to incorporate changes from another branch into your current branch while maintaining a linear commit history, which command should you use?
  5. You accidentally committed sensitive credentials in your last commit and pushed it to the remote repository. Which sequence of operations is the most appropriate way to clean this up assuming no one else has pulled the changes yet?

Answers and explanations come after you submit.