---
title: "Git rebase to the beginning of time"
description: "Git has a built in way to rebase all the way back to the beginning of time. There is no need to scroll through the log to find the first hash, or find the..."
date: 2022-02-23
published: false
tags:
  - git
  - cli
template: til
---


Git has a built in way to rebase all the way back to the beginning of
time.  There is no need to scroll through the log to find the first
hash, or find the total number of commits. Just use `--root`.

``` bash
git rebase --root
```
