- Install and configure Git
Install Git on macOS, Windows or Linux and set the handful of settings every developer should have.
- Your first repository
Create a repository, stage changes, commit, and read the history. The core Git loop in ten minutes.
- Branching and merging
Create branches, switch between them, and merge them back. This is the building block of every Git workflow.
- The Gitflow workflow, step by step
Run a full Gitflow cycle (feature, release and hotfix) with plain Git commands and with the git-flow extension.
- Rebase vs merge
Two ways to combine work. What each does to history, when to use which, and the one rule you must never break.
- Undoing things in Git
restore, reset, revert and reflog. Pick the right undo for the situation and recover "lost" work.
- Remotes and pull requests
Clone, fetch, pull and push, then open a pull request. How Git workflows play out on GitHub and GitLab.
Learn
Git tutorials
Short, hands-on lessons, in order. Every command is copy-pasteable.