Setting up a new repository
-
cdto wherever you're storing Fossil repo files (e.g.~/dev/fossil-repos) -
fossil init <project-name>.fossil -
cdto 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
-
scpthe repo file to the remote host -
mvthe file to the right place for hosting, e.g./home/fossil/repos/ -
chownthe file to the right user and group, e.g.fossil:web -
fossil remote https://username@domain/path -
fossil sync