Prof. Falken
Prof. Falken

Reputation: 24897

How to restore single directory in a Fossil repo?

Some commits ago, I deleted a directory in my Fossil repo. How do I get it back?

Upvotes: 0

Views: 417

Answers (2)

Benoit
Benoit

Reputation: 79205

The simplest way would be:

  • open fossil ui
  • go to the last commit in which your directory existed
  • click on “zip file” to download a zip of the repository at that time
  • decompress only the right folder.

Upvotes: 1

ravenspoint
ravenspoint

Reputation: 20565

  1. Clone your repository in folder 1

  2. Open at the last checkin that contained the lost directory

  3. Clone your repository in folder 2

  4. Open the tip

  5. Copy the lost directory from folder 1 to folder 2

  6. execute addremove in folder 2

  7. commit folder 2

Upvotes: 1

Related Questions