Loading tutorials
git init, git clone, git add, git commit, git status, and git log in a terminal. You need a repository with at least a few commits to try the commands. Later chapters use git switch, which needs Git 2.23 or later.2 min readgit init, git add, git commit, git status, and git log. It also assumes Git 2.23 or later, which added git switch. The goal is a working model of what a branch is, because every later operation (merge, rebase, delete, recover) follows from it.2 min readgit init, git add, git commit, git status, and git log. It also assumes Git 2.23 or later, which provides git switch. A branch is a pointer to a commit. HEAD tells Git which branch you are currently on.2 min readinit, clone, add, commit, status, and log, and that you run Git 2.23 or later, which added git switch. It also assumes you know a branch is a pointer to a commit and that HEAD names the branch you are on.2 min readgit switch -c and git switch, and that you know a branch is a pointer to a commit. Here you will learn which names Git accepts, which conventions teams use, and how to rename a branch safely.2 min readgit log, and create and switch branches with git switch. It covers the simplest kind of merge, where Git only moves a pointer.2 min readgit init -b.2 min readgit merge. It also assumes you know what a three-way merge is.2 min readgit log, and create and switch local branches. It also assumes your repository has a remote, usually named origin, from git clone.2 min readorigin. A remote is another copy of the repository, usually on a hosting service.2 min readgit log. You need Git 2.23 or later for git switch.2 min readgit merge, and have seen git rebase replay commits. Here you decide which one to use and avoid the errors that rebasing causes.2 min readgit log, and merge. It covers applying one commit from another branch onto your current branch.2 min readgit push -u work. A workflow is a team agreement about which branches exist, who may update them, and how work reaches main. Git enforces none of it, so the team has to.2 min read