Thursday, 11 April 2024

Git Interview Questions



  • What is Git?
  • Explain git clone command.
  • Explain git checkout command.
  • What is cherry picking?
    • When to use it? (explain how it's used for team collaboration, bug hotfixes, ...)
    • What is the syntax of git cherry pick command?
    • On which branch do we need to be before cherry picking?
    • How does the commit graph look like before and after cherry picking? (draw an example)
    • Explain its options:
      • -edit
      • --no-commit
    • Git Cherry Pick | Atlassian Git Tutorial
  • Explain git log command
  • What is the difference between git revert and reset commands. Which one should be used on public branches?
  • To Be Continued...

No comments: