Getting started with a fossil

I just started working with fossil. My reasons for choosing fossils:

  • cross platform
  • single exectuable
  • single repository file (typical .fossil extension)
  • supposedly easy to use (but not all?)

I have a few questions. Context. Suppose I want to track changes for each file within multiple directories, exactly named dir1, dir2, etc. Suppose I want to save a copy to a USB drive. Suppose I want to save a copy on another partition of the same drive when I navigate between Linux and Windows partitions. I am the only user and do not always have access to the Internet.

  • I would like to store dir1.fossil outside dir1. I can do it? The user guide instructions say that I create dir1.fossil from inside dir1 and that where dir1.fossil is currently being created in my setup. Ideally, I would like the files dir1.fossil, dir2.fossil, etc. Stored together in another directory, for example. called fossilreposdir and located in the root. Is it possible?

  • I would like to insert a USB flash drive into my laptop and pop the repositories from it in plug-and-play mode.

  • If possible, I would also like to push / pull repositories through my windows and Linux partitions without using a USB flash drive.

If this is too much of a headache when setting up (for my poor head), I will resort to simply copying .fossil repositories back and forth to the repository.

+2
1
  • .

  • .

  • ? dropbox . , Dropbox, .

// into working directory
cd ../dir1
// create repository somewhere else
fossil new ../fossilreposdir/test.fsl
// open remote repo in local working directory
fossil open ../fossilreposdir/test.fsl test.fsl
// add files
fossil addremove
// commit
fossil ci
+2

Source: https://habr.com/ru/post/1529062/


All Articles