Explain Git and GitHub to a beginner.
Answer
- Git is a tool on your computer that records the history of your project as commits (snapshots).
- It lets you create branches to try changes safely and merge them later.
- GitHub is a website (also GitLab, Bitbucket) that stores a copy of your Git repository online so teams can share it.
- On top of Git, GitHub adds pull requests, code review, issues and automation (Actions).
- Daily flow: clone, create a branch, edit, add, commit, push, open a pull request.
Practice this question in Repaso