The protocols Git uses to transfer data (local, HTTP, SSH and git), how to set up SSH keys, how to host bare repositories on your own server with SSH, git daemon, Smart HTTP and GitWeb, and how self-hosting compares with GitHub and GitLab.
How teams share work with Git: patches with format-patch and am, centralized and integration-manager workflows, GitHub Flow, Git Flow and trunk-based development, and practical habits for contributing to and maintaining a project.
Three everyday helpers: git stash to park unfinished work, lightweight and annotated tags to mark releases and push them, and Git aliases to shorten the commands you type most.
Every common way to undo something in Git: discard edits with git restore, unstage, fix the last commit with --amend, move branches with git reset (soft, mixed, hard), undo published commits with git revert, remove and move files, and recover lost work with the reflog.
How git rebase replays commits onto a new base, when to rebase and when to merge, cleaning up history with interactive rebase (squash, fixup, reword, reorder), and copying single commits with git cherry-pick.
How Git talks to other repositories: remotes and origin, remote-tracking branches, upstream branches, and what git fetch, git pull and git push really do. Includes force-pushing safely and keeping branches in sync.
How git merge combines branches, the difference between fast-forward and three-way merges, why conflicts happen and how to resolve them step by step, plus tools and settings that make conflicts less painful.
What a Git branch really is, how HEAD tracks your position, and how to create, switch, list, rename and delete branches. Also covers detached HEAD and the revision names such as HEAD~2 used throughout the series.
What a commit contains, how to write commit messages people can use, how to compare versions with git diff, and how to read and search history with git log, git show and git blame.
How to create or clone a repository, what lives inside the .git directory, and how files move between the working directory, the staging area and the repository. Covers git status, git add and .gitignore.
This browser does not support IE anymore, please use one of the browsers below!