BeginnerModernization28 min
Git and GitHub
Version control from first principles: what a repository is, how commits, branches and merges work, and how teams review changes with GitHub pull requests before anything reaches a pipeline.
What you will be able to do
- Explain what Git records, and the difference between Git and GitHub
- Clone a repository, then stage, commit, push and pull changes
- Work on a branch, merge it, and resolve a simple merge conflict
- Open, review and merge a pull request the way most teams do
Lessons
- What version control does, and Git versus GitHubVersion control keeps the full history of a project: every change, who made it, when and why, so you can compare versions, undo mistakes and work in parallel.
- Clone, stage, commit, push and pullYou clone a repository to get your own copy, edit files, stage the changes you want with git add, record them with git commit, and share them with git push.
- Branches, merging and conflictsA branch is a separate line of work. You create one for each change, commit to it without disturbing anyone, and merge it back when it is ready.
- GitHub pull requests and code reviewA pull request asks for a branch to be merged into main and gives the team a place to review it first.
Track your progress and earn a certificate.
Free account, 24 quiz questions for this subject.