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