Question

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

Was it helpful?

Solution

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.

OTHER TIPS

  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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top