Create Fossil repository from existing project files
Frage
I'd expect this to be explained in the beginner's quick start guide, because almost everyone who starts with fossil will have projects that he wants to start managing with fossil. Yet I could not find an explanation anywhere in the documentation.
(I'm coming from git, which was way too heavy for my needs, but at least creating a new repository in an existing folder was easy ...)
(tried to answer my question but have insufficient reputation. so here it is:)
I think I figured it out myself. Here's what I did, for beginners:
- Create directory for repositories,
C:\www\fossil
- Enter
fossil
directory fossil init projectname
- Enter directory of existing project
C:\www\projectname
fossil open ../fossil/projectname
fossil add *.*
Lösung
Some comments:
- Step 3. can be alternatively done with
fossil new
instead offossil init
. - Step 6 should be
fossil add .
; this is recursive. fossil does not abide by the old, Microsoft rule that states*.*
means every single file even without extension.fossil add *.*
will merely add all files and directories that contain a dot in their name. - Step 7 should be
fossil commit -m "Initial contents of my project"
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow