Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

It's History all the way down

Goal

  • Where you discover there is a meta-repository in which every commit is itself a repository.
  • And it's nothing scary: simply, everything you do with jj is tracked down.

Back to The Start

For the next sections I will ask you to obtain a fresh copy of the same repo you cloned before. There are at least two ways to do this.

  1. You could delete the project directory and clone the repository again with:
$ jj git clone https://codeberg.org/arialdo/jj-playground1.git
$ cd jj-playground1
$ jj bookmark track '*' --remote origin
  1. Otherwise, you could keep running jj undo until you get the status right after you executed that:

jj git remote remove origin

But first, you might wonder where undo and redo fetch their information from. The next few pages will shed some light on the topic.