Programming Search⌘K

Git concepts

How Git works: the object model, the index, refs, branches, merges, rebases, remotes and the files that configure a repository.

Features

  • git branch

    A branch is a line of development in a version control system. In Git, a branch is a name that points to one commit, and the name moves to each commit that you make on it.

    core
  • git commit

    A commit is a saved snapshot of the whole project, with an author, a date, a message and links to its parent commits. Git names each commit by the hash of its bytes.

    core
  • git merge

    A merge joins two lines of development. Git compares both tips with their merge base, keeps the changes of each side, and records the result as a commit with two parents.

    core
  • git rebase

    A rebase replays a series of commits on top of another commit. The changes stay the same, but each replayed commit has a different parent, so it is a different commit with a different hash.

    core