Skip to main content
History commands allow you to create commits, manage branches, and manipulate your project’s history. These are core commands for Git’s version control functionality.

git-backfill

Download missing objects in a partial clone

git-branch

List, create, or delete branches

git-commit

Record changes to the repository

git-history

Show the history of a file or directory

git-merge

Join two or more development histories together

git-rebase

Reapply commits on top of another base tip

git-reset

Reset current HEAD to the specified state

git-switch

Switch branches

git-tag

Create, list, delete or verify a tag object signed with GPG

Overview

These commands manage your repository’s history:
  • git-branch manages branch creation and deletion
  • git-commit records changes to the repository
  • git-merge combines multiple branches
  • git-rebase reapplies commits for a cleaner history
  • git-reset moves HEAD and optionally modifies index/working tree
  • git-switch changes between branches
  • git-tag creates reference points in history

Build docs developers (and LLMs) love