Setting up a new repository
-
cd
to wherever you're storing Fossil repo files (e.g.~/dev/fossil-repos
) -
fossil init <project-name>.fossil
-
cd
to your working directory (e.g.~/dev/<project-name>
) -
fossil open <path-to-fossil-file>
-
You can start the web server with
fossil ui
Ignoring files
You can use the settings ignore-glob command to list the directories/files to ignore as a comma-separated list.
On your repository's web interface, go to the Admin menu, select Settings and type the comma-separated list of directories to ignore; for example: */*.suo,*/*/bin/*,*/*/obj/*.
Alternatively, on the command line you can type fossil settings ignore-glob to list the applied ignore list, or fossil settings ignore-glob list-of-files.
Workflow
-
Make changes
-
fossil changes
/fossil diff
-
fossil addremove <files-or-dirs>
-
fossil commit
Setting up remote repositories
-
Change any security settings you need to adjust, like taking the repo private and setting a user password
-
Update the canonical URL
-
scp
the repo file to the remote host -
mv
the file to the right place for hosting, e.g./home/fossil/repos/
-
chown
the file to the right user and group, e.g.fossil:web
-
fossil remote https://username@domain/path
-
fossil sync