Fossil basics: creating a local repository

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

Fossil basics: creating a local repository

#1 Post by technosaurus »

The fossil documentation assumes you already have a repository of some kind set up somewhere.
But what if you just have a directory full of source code?

lets say all of your files are in a folder called myproject
this is how you set up a local repository using a local folder

from the parent directory of myproject

Code: Select all

#this sets up your project file 
fossil init myproject.FOSSIL

#tells fossil to open that project file
fossil open myproject.FOSSIL

#tell fossil to add the directory myfossil (and its contents) but not "commit" it
fossil add myproject

#this will update the changes so they can be seen in the UI
fossil commit
#p.s. it will open your $EDITOR to edit the comment for the commit

#to verify that it worked you can use the built-in UI
fossil ui myproject.FOSSIL
that is it for now, perhaps someone can chime in on committing changes or hosting on chiselapp.com (its documentation is sparse)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply