Git Version Control Best Practices Quiz

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

Quiz covering Version Control and Testing

What you'll be asked

  1. Which command is used to save changes to the local repository while providing a descriptive message about the work performed?
  2. Why is it considered a best practice to keep individual git commits small and focused on a single logical change?
  3. You are working on a new feature but realize you accidentally committed a secret API key to your local branch. What is the most appropriate action to take before pushing to a remote repository?
  4. What is the primary purpose of a .gitignore file in a project repository?
  5. Your team uses a 'feature branch' workflow. You have been working on a feature for several days, and the main branch has moved ahead significantly. What should you do to ensure your feature branch is up to date and conflict-free before merging?

Answers and explanations come after you submit.