# 101 Reasons Why Fossil Is Better Than Git 1. **Fossil comes as a single self-contained executable file**.
Install Fossil by copying "fossil" (or "fossil.exe") to some place on your $PATH (or %PATH%). Upgrade (or downgrade) by overwriting that one file. Uninstall by deleting that one file.
A Git installation requires hundreds of files. You want to use a package manager to install, upgrade, or uninstall Git. If you tinker with individual files of a Git installation, you run a high risk of messing things up. 1. **Fossil comes with a built-in full-featured web interface**.
The Fossil web interface meets or exceeds the capabilities of GitHub, GitLab, Gitea, Forgejo, and similar. Some people think of Fossil as "GitHub-in-a-box". Git has "gitweb", but that CGI program is so limited and difficult to set up and use that few people even know it exists, so I do not count it for the purposes of this point. 1. **You can run the Fossil web interface locally using the "fossil ui" command.**
Just type the command "fossil ui" from any Fossil checkout, or add an argument that is the name of a Fossil repository file or a directory that is the root of an open checkout and Fossil automatically brings up a new window with the Fossil web interface in your preferred web browser. This works seamlessly on all platforms. There is nothing extra to install. There is no configuration or setup. It just works. 1. **The Fossil web interface shows a graphical timeline of changes.**
See, for example
Using the web interface, one can easily check on the status
of a project when away from the office and without access to a clone
of the repository.
1. **The Fossil web interface view of a single check-in shows a
context graph of all other directly connected check-ins.**
See the page for [check-in 59985724d71229bf](/info/59985724d71229bf)
for example. The context graph shows four other check-ins:
two direct descendants, one merge descendant, and one ancestor.
This context graph is useful in understanding how a particular
check-in fits into the history of the project. The context graph
can also be used to step forwards or backwards in time, by
clicking on the "check-in:" hash links for nearby check-ins.
1. **The graphical timeline dynamically adjusts its layout as you resize
your browser window.**
The server sends down an HTML page that contains (among other things)
a JSON object that gives the basic structure of the
timeline graph, then Javascript renders the graph. The JS code is
small, does not use any third-party frameworks, and is (by default)
appended to the HTML page. Except for a separate CSS file, the HTML
is completely stand-alone. The local
web browser isn't required to go gather lots of separate resources.
1. **The graphical timeline works on a phone.**
The graph layout automatically compresses on a small display, and
can seem a little cramped for a complex project. The timeline
does look better on a desktop. Even so, the timeline display is
functional on a phone and it is very convenient
to be able to see what is happening on a project
while away from the office and without access to a laptop.
1. **The graphical timeline is bandwidth efficient.**
To display a timeline of recent activity on Fossil uses less
than 5% of the bandwidth as GitHub. In a typical example,
GitHub requires about 3.5MB of transfer to retrieve 56 different
resources compared to 150KB for just one HTML file and one CSS file
with Fossil. And for all that 3.5MB, GitHub only gives you a list
of recent check-ins without any indication of the branching
structure, whereas Fossil gives you an easy-to-read color-coded
graph.
1. **The Fossil web interface makes it easy to see a diff between
any two check-ins with just a couple of clicks.**
On the timeline display, click on one node of the graph to
select it (a red dot will appear in the center of the node) and
then click on any other graph node, and Fossil will compute and
display a diff between those two check-ins. (Usage hint:
click the selected node a second time to deselect it.)
1. **The Fossil web-based diff page shows the context of the two
check-ins being diffed.**
At the top of the web-based diff is a graph that shows
specifically the two check-ins being diffed and the context
around them.
[Example](/vdiff?from=052390edaf04a5f5&to=9b686daeeda7b4ca).
This helps to reduce any confusion about what you are looking at.
1. **In Fossil, a repository is distinct from a working checkout.**
A Fossil repository can be colocated with the working checkout, as
they are required to be in Git. But most people keep the repository
separate. One common pattern is to put all Fossil repositories in
a single directory named $HOME/Fossils or $HOME/Museum and then open
working checkouts against each repository wherever they are needed.
1. **A single Fossil repository can support multiple working checkouts.**
Git has worktrees, but all worktrees checkouts must be on separate
branches. Fossil allows multiple working checkouts on the same branch
or even on the same check-in. One common pattern is to have one
checkout that is being edited, and another that is a pristine, unedited
version of the same check-in. This allows both to be compiled
simultaneously for performance comparison, or to step through both
binaries in two separate "gdb" sessions to hunt down a bug.
1. **A Fossil repository is a single disk file, not a directory
hierarchy.**
You can "mv" a Fossil repository to a new place. You can "scp"
a Fossil repository to another machine. It is just a file,
specifically an SQLite database file. You can name a Fossil
repository anything you like. The usual convention is to give the
repository file a ".fossil" suffix, but that is not required.
1. **Fossil does not have a staging area**.
This and other information (such as all your global settings)
is stored in a per-user database file
at $HOME/.config/fossil.db on unix or in %LOCALAPPDATA%/_fossil on
Windows. Fossil creates and manages that file automatically.
The user never has to know the file even exists. If you
move or rename repositories or checkouts, the database will get
temporarily out of sync with reality, but Fossil will automatically
fix the database the next time you do anything with the file or
checkout that was moved or renamed.
You can get a list of repositories using the
"fossil all ls" command, or a list of open
checkouts using "fossil all ls --ckout".
1. **Fossil lets you bring up a web-based UI that shows all of
your repositories at once.**
Run the command "fossil ui /" and your
default web browser will pop up a new tab that lists all of your
repositories together with the
associated project name and how recently that repository was modified.
Click on links to bring up repository-specific web-pages. Or click
on column headers to sort by that column.
If you are like me and have hundreds of repositories on your desktop
system, this feature makes it easier to keep track of them all, or
just to remember what you called each one.
Are you on an infrequently used travel laptop and forgot where you
put a particular repository, this feature helps you find it.
1. **Fossil lets you quickly find uncommitted changes across all of
your open checkouts.**
Simply run "fossil all changes" to get a quick
summary of every checkout on your local machine that needs a commit.
1. **Fossil lets you sync all of the changes in all of your local
repositories to their remotes, with a single command.**
Run "fossil all sync" and all your local
repositories will sync up. This is useful, for example when
taking a laptop off-network. Before disconnecting, you sync
all of your repositories. Fossil itself keeps track of all
of your repositories, so you cannot accidentally forget one or two.
While off-network, you might commit changes to one or
more of those repositories. Once you reconnect, you simply
run "fossil all sync" again to push out your edits
back to the community.
1. **Fossil allows multiple check-ins to have the same tag.**
For example, on the SQLite project, every release is tagged with
"release".
1. **The Fossil timeline can show all check-ins with a specific tag.**
For example, to see all SQLite releases visit
Wiki pages are stored in the same repository file as your code, so that
they push, pull, sync, and clone together with your code.
Git does not itself have a wiki. The various Git forges usually add
wikis, and store the wiki content in Git, though in a separate
Git repository. There is no option to store the wiki and source code
together such that they clone and sync as one, in the Git ecosystem.
1. **Fossil can associate a wiki page with a particular check-in.**
Rather than including an oversized check-in comment on an
important check-in (such as the merge of a big new feature), Fossil
allows you to assign a wiki page to that check-in. That wiki page
is shown as part of the check-in information in the web interface.
See, for example, the "About" section of
[SQLite check-in 2019-11-21T18:28:44.463Z](https://sqlite.org/src/info/2019-11-21T18:28:44.463Z).
The wiki page associated with a check-in can be created and revised
after the check-in is committed and pushed. This feature can be used
to add notes or bug reports that occur long after the
check-in itself has been inserted into the DAG.
1. **Fossil can associate a wiki page with a particular branch.**
You can create a wiki page for a branch that documents the purpose
of that branch. The wiki page can be displayed separately (like any
other wiki page) but is also displayed automatically at the top of
every timeline for that branch. See, for example,
Git does not track branches. Git only names each leaf
of the DAG and infers branches based on the names of leaves.
Fossil actually remembers the name of branches.
For example, suppose a customer asks
"Whatever became of that setlk-snapshot-fix branch you
started last year?" That branch still exists and you can
[see it on GitHub](https://github.com/sqlite/sqlite/commits/setlk-snapshot-fix)
and [in Fossil](https://sqlite.org/src/timeline?r=setlk-snapshot-fix).
Notice, though, that GitHub does not show how the branch was resolved.
(Aside: Also notice how much faster Fossil renders!)
Fossil clearly shows that the branch ended up being merged into trunk.
GitHub just shows us all ancestors of the leaf node labeled
"setlk-snapshot-fix", including ancestors that were in other branches
that got merged in, and ancestors that predate the founding of the
setlk-snapshot-fix branch.
GitHub is unable to show you the check-ins of branch setlk-snapshot-fix
only. There are other third-party tools that will show you that, I am
told, but they all require a local clone of the repository. Apparently
there is no way to see this information in a web browser using Git,
with or without third-party tools.
1. **Fossil has a built-in bug tracking system.**.
Tickets are stored in the repository together with source code and
push/pull/sync the same as the code. The ticket system is configurable
and distributed. Repository administrators can determine what
fields appear in tickets and what users are allowed to create,
edit, or moderate tickets.
1. **Fossil allows multiple branches with the same name.**
As an example, the SQLite project has multiple branches
named "experimental"
Both Fossil and Git started out using only SHA1 hashes. But when the
[SHAttered attack](https://www.marc-stevens.nl/research/shattered.io/)
against SHA1 was published on 2017-02-23, the need to migrate to a
stronger hash algorithm was recognized. Fossil added the ability
to use SHA3-256 as an alternative on 2017-03-01 (six days after the
SHAttered attack was first published).
SHA3-256 is now the default for all new repositories and check-ins
in Fossil, though older check-ins that occurred
prior to SHAttered can still use their original SHA1 hash. Hence,
no repositories had to be rebuilt and no hyperlinks were broken.
In contrast, after nine years, a Git repository can still only
support one hash algorithm at a time.
Newer Git repositories are able to use SHA2, though the default
is still SHA1.
1. **Fossil allows check-ins to be identified by timestamp**
The canonical name for a check-in is its hash. Both Git and Fossil
allow a check-in to be identified by any unique prefix of its hash.
But only Fossil allows a check-in to also be identified by its
timestamp. The names "2026-02-02T16:03:24.852Z" and "fdebbedbd9a99165"
both refer to
[the same check-in](https://sqlite.org/src/info/fdebbedbd9a99165),
but the first one has the advantage of giving some time
context rather than just being a seemingly random sequence of hexadecimal
digits. It is possible that two or more check-ins can have the same
timestamp, in which case the timestamp would be ambiguous. And a
check-in timestamp can be changed after it is committed, by using
a special tag. So timestamp identifiers do not have the uniqueness
and stability guarantees as hash identifiers, but they are available
as an option and are often useful.
1. **Fossil has a built-in forum.**
The forum content is replicated via push, pull, sync, and clone just like
source code. Forum posts can be enabled per user or for all users or
for all users and anonymous passers-by. Some users can be appointed
as moderators and posts from untrusted users can be held for
moderation.
The [Fossil Forum](https://fossil-scm.org/forum), the
[SQLite User Forum](https://sqlite.org/forum), and the
[SQLite Bugs Forum](https://sqlite.org/bugs) are all forums
set up for specific purposes and deliberately kept separate
from source code. But other projects such as
[Pikchr](https://pikchr.org/) comingle their forum and the source code
in the same repository. Thus when you clone the
Pikchr source repository, you also get all the Forum history.
1. **Fossil makes it easy to set up a project website using CGI.**
If you have an internet-facing machine running a CGI-capable web
server, you can stand up a complete self-hosting project
website with a two-line CGI script. The canonical
[Fossil website](https://fossil-scm.org/home) is really just such
a CGI script. When you clone the Fossil source code, you don't
just get the code, you get the entire website.
The CGI script used to run the Fossil website looks
approximately like this:
CGI is easier, but some web servers (ex: Nginx) do not support CGI.
If you are using such a web server, you can also run a Fossil
server using SCGI. See the
[on-line Fossil SCGI documentation](/doc/trunk/www/scgi.wiki)
for details.
1. **Fossil makes it easy to set up a project website behind a
reverse proxy.**
Simply run a [Fossil HTTP server](/doc/trunk/www/server/any/none.md)
and have your reverse proxy redirect requests to this new Fossil
server. You can also set up the Fossil server to work over named
pipes rather than a loopback, if your reverse proxy supports that.
1. **Fossil makes it easy to set up a project website without
using any web server at all.**
The [fossil server command](/help/server) includes a --cert
option with which you can specify a TLS cert for encrypted
communication, and with the option, Fossil will accept ordinary
HTTPS requests from the open internet. There is no need to
install and configure a separate web server. Hence, the only
software you need to stand up a project website using Fossil is
the stand-alone "fossil" binary.
1. **A single Fossil server is able to host multiple projects.**
By default, each Fossil server provides content for a single
repository. But you can launch a Fossil server that hosts
multiple repositories by putting all those repositories in a
directory and giving the directory name as the object to serve
instead of the repository name. For this mode of operation,
the repositories must be named with the ".fossil" file
suffix. Individual projects have URLs that begin with the
repository base name, omitting the ".fossil" suffix.
1. **Fossil automatically pushes after each commit, by default**.
The [autosync setting](/help/autosync), which defaults to "on", causes
every commit to automatically push to the default remote. This helps
to keep the remote up-to-date and helps all the developers working on
the project keep up with what other developers are doing.
Long-time Git users might cringe at autosync, thinking that this
could cause problems if another developer commits ahead of you.
True enough, that would cause headaches for Git, but it does not
create problems for Fossil.
The worst that could happen is that the branch will fork. Fossil
will usually detect an impending fork and warn you.
But even if you don't get the warning (due to a race) or even if you
override the warning and force the commit anyhow, a fork on a branch
in Fossil is harmless. It shows cleanly in the timeline and
is easily resolved. So while autosync might cause issues with Git,
it is harmless when using Fossil. Since forks are harmless,
the benefits of autosync far outweigh the risks.
1. **Fossil supports embedded Pikchr in Wiki and in the Forum.**
The [pikchrshow page](/pikchrshow) allows users to experiment with and
refine their Pikchr diagrams prior to copy/pasting them into their
documents.
1. **The Fossil web interface supports "embedded documentation"**
The embedded documentation and wiki features allow you to write
web pages. The unversioned file feature gives you space to put
precompiled binaries or other transient and/or derived resources
without contaminating the source tree. The Forum and Ticket features
provide for community discussion and bug tracking. Fossil provides
everything you need to host a complete software project website.
Indeed, the
[canonical Fossil website](https://fossil-scm.org/home) is just
an instance of Fossil running on the self-hosting Fossil repository.
If you clone the Fossil self-hosting repository, you don't get just
code - you get the entire website. (Exception:
[Fossil Forum](https://sqlite.org/forum) is hosted separately using
a separate Fossil repository, so you'd actually need to clone that
one too, in order to get the whole website.)
1. **Using Fossil, backing up your project website is just a sync.**
If you host your entire project website in a Fossil repository,
as Fossil itself does, then backing up that website is as simple
as creating a clone and keeping the clone synced.
1. **Fossil will render uncommitted changes to embedded documentation.**
Using the "fossil ui" and the
[/doc/VERSION/FILE](/help/www/doc) webpage, if the VERSION is the
special keyword "ckout", then the content is taken from the local
checkout rather than from the repository. This allows you to edit
embedded documentation files and then press Reload on your browser
to see how they will look and work on the
actual website without having to commit.
1. **Fossil has a wiki sandbox for experimenting with markup.**
Core Git does not have any kind of markup language. Check-in comments
in Git are always displayed verbatim. But wrappers such as GitHub,
GitLab, Gitea, Forgejo, and similar generally support some variant
of Markdown. However, none of these system support links (apart from
full URLs) to other wiki systems. Fossil does support interwiki links
using the syntax "remote:path". So, for example, a check-in
in the SQLite source repository (
Interwiki links are important because (1) they help keep hyperlinks
shorter, and (2) if the target wiki
ever moves to a new domain, all the links automatically adjust
by changing a single server setting, and (3) clones can have
different mappings for interwiki links, so that (for example)
a "bugs:" link in a clone of the source repository can map to
a clone of the Bugs Forum repository rather than the canonical
Bugs Forum.
1. **Fossil has a built-in chat server.**
Users with appropriate permissions (usually just registered
developers, not anonymous passers-by) can bring up a web-based chat
window on any Fossil web-server instance. This feature allows
geographically distributed developers to collaborate interactively,
without having to involve a third-party chat provider such as Slack.
Nothing needs to be configured in order to activate Chat, other
than enabling the Chat privilege on the permission bits of the
users whom you want to have access to Chat.
1. **Fossil chat can be configured to send automatic notifications
when changes occur in the repository.**
This helps developers keep up with what is happening in the repository.
The chat window beeps (or not, configurable individually by each user)
when new messages arrive, as an alert.
1. **The Fossil Chat system has hooks that allow external subsystems
to inject chat messages.**
The SQLite developers use this to get notifications of testing
failures from our fuzz testing infrastructure. It could also
be leveraged to get chat notifications of CI/CD problems.
1. **Fossil chat is able to send attachments.**
When the SQLite developers are working collaboratively on a problem
(while working, literally, on three different continents) we easily
send patches or diffs to one another over Chat.
1. **Fossil supports hyperlinks in check-in comments.**
Check-in comments need not be just verbatim text (though they can
be, depending on repository settings). By default, check-in
comments can contain hyperlinks, including hyperlinks to
wiki pages, prior check-ins, forum posts, and interwiki hyperlinks.
1. **Fossil supports hyperlink back references**
If the check-in comment for a newer commit contains a hyperlink
back to an older commit, then when the web interface shows the
details of the older commit, it also provides a forward
reference to the newer commit.
1. **Fossil supports a graphical timeline display of a bisect.**
[For example](https://sqlite.org/src/timeline?bid=y2f0bde4bc8-ndfc790f998-ye2634e500c-yff205f2993-y6bb717acf7-nb48d951916-y8364d89c3b-n98a53fb276-y9d68971c58-y498ee8d514-n043ff54fb7-ye33da6d5dc).
This is not strictly necessary to make effective use of bisect, but
the graphical display does seem to help with situational awareness.
1. **Fossil can show you the first release in which a particular
check-in appears, with a single mouse click.**
You have to configure the repository by giving it the name of the
tag that you use to mark releases, using the
[path-to-tag setting](/help/path-to-tag). Suppose you use the tag
name "release". Once you do that, then
when you are looking at the "info" page for a check-in, a link
named "path-to-release" appears in the overview section, and if
you click on that link, it brings up a new graph showing the
shortest path from that check-in to the next descendant check-in
tagged with "release".
Example: On the info page at
This feature is useful for when you bisect to find a bug, or a bug
fix, and you want to know the first release in which that bug or bug fix
appeared.
1. **Fossil allows you to revise a check-in comment without
rewriting history.**
If you find a typo or other error in an historical check-in comment,
you can fix the problem in Fossil without having to rewrite all
subsequent history. The Fossil file format allows you to set
a special tag on the check-in that provides revised comment text.
The new tag causes both the command-line display
and the web interface to show the revised check-in comment rather
that the original. Note that the original check-in comment is
preserved, so there is still an immutable audit trail. But for
common use cases, only the newer revised comment is shown.
If you are using the web interface and if you have check-in privilege
on the repository, then on the /info page for the check-in, under
the "Overview" section, to the right of "Other Links:", there is
an "edit" link that will take you to a page that lets you change
the check-in comment from the web interface. This is the easiest
way to edit a check-in comment.
See [Fossil check-in b63d654041](/info/b63d65404) for an
example. The original comment is shown in the "Overview"
section of the check-in details, but the revised comment is shown
in the timeline.
1. **Fossil allows you to revise a check-in timestamp without
rewriting history.**
When generating a new check-in, Fossil uses the current time on the
system where the commit is occurring. But if the system clock on
that system is incorrect, that can lead to a check-in with an
inaccurate timestamp. It can be the case that prior check-ins
have later timestamps or that subsequent check-ins can have
earlier timestamps, resulting in goofy-looking "time-warps" in the
timeline. This can be fixed by add a timestamp correction tag
to the faulty check-in to fix the timestamp.
If you are using the web interface and if you have check-in privilege
on the repository, then on the /info page for the check-in, under
the "Overview" section, to the right of "Other Links:", there is
an "edit" link that will take you to a page that lets you change
the timestamp for a check-in from the web interface. This is the
easiest way to make the change.
1. **Fossil allows you to move a check-in to a new branch without
rewriting history.**
If you mistakenly commit to the wrong branch, you can move that
check-in to a new branch by attaching a special tag.
Note, however, that this will also move all subsequent check-ins
to that same new branch.
In the SQLite and Fossil projects, when developers mistakenly commit
on the wrong branch, the usual way we fix that is to move the
mistaken check-in to a branch named "mistake". Sometimes we also
set the "hidden" tag on that check-in as well, so that it does not
show up on ordinary timelines (though it is still part of the
immutable audit history and is visible with special options).
Then we just cherrypick the check-in onto the correct branch.
If you are using the web interface and if you have check-in privilege
on the repository, then on the /info page for the check-in, under
the "Overview" section, to the right of "Other Links:", there is
an "edit" link that will take you to a page that lets you move the
check-in to a new branch from the web interface. You can also do this
from the Fossil command-line, but the web interface is easier and less
error prone.
1. **Fossil supports unversioned files**.
[Unversioned Files](/doc/trunk/www/unvers.wiki) are files held
in the repository but which are not versioned and which are not
synced by default. Unversioned files are used by Fossil itself
to store [Precompiled Binaries of Fossil](/uv/download.html).
Unversioned content is not synced *by default*. But unversioned
files will sync if you add the -u option to the
[fossil sync command](/help/sync).
There is also the [fossil uv sync](/help/uv) command.
1. **Fossil automatically selects check-in background colors according to
the branch that each check-in occurs on.**
This helps to make the timeline easier to read at a glance, by
clearly showing which check-ins are on which branches. Developers
can assign specific colors to branches either when the branch is
first created, or after the branch has been running for a while.
But experience teaches us that it is better to just let the web
interface pick the branch colors automatically. The color is
derived from a hash of the branch name.
1. **The Fossil web interface contains a page that allows you to
preview what colors Fossil will choose for branch names.**
On the [/hash-color-test page](/hash-color-test), one can enter
candidate branch names and see in advance what colors Fossil will
pick for that branch name. This seems like cheating, but I will
admit that I do this myself, sometimes...
1. **The Fossil web interface timeline can be asked to pick check-in
colors using the name of the committer, rather than the branch
name.**
Simply add the "ubg" query parameter (mnemonic: User BackGround) and
the check-in colors will be determined by the committer login name
rather than the branch name or any preselected color name. This
results in a timeline that gives the reader a clearer view of who is
making changes.
[Example](/timeline?n=200&y=ci&ubg).
1. **Fossil tracks cherrypick merges.**
Cherrypicks are recorded as part of the underlying
[Fossil file format](/doc/trunk/www/fileformat.wiki).
Cherrypicks appear on the timeline as thin dashed lines.
1. **Fossil draws arrows pointing forwards in time.**
Forward-pointing arrows are more intuitive than arrows
that point backwards in time, like Git uses. Yes, I am aware
that the underlying implementation of Git has pointers going from child
to parent, and thus must necessarily go backwards in time. Fossil
has the same pointers. But just because the *implementation*
points backwards in time does not mean that the *user interface*
needs to do the same. Fossil flips those pointers around so that
they make more sense from the perspective of the human reader.
1. **Fossil implements some unix-like shell commands to use as
substitutes on systems that don't have them or that have inferior
implementations.**
For example the "fossil system ls" command works like the standard
"ls" command on unix. It doesn't support all the options that a typical
"ls" implementation supports on Linux, but it is still way better than
having to run "dir". Other substitute commands include
"date", "pwd", "stty", "unzip", "which", and "zip". Probably
more will be added as needs arise. Having ready access to these
commands built into the standalone Fossil binary makes working on
non-Linux platforms more comfortable for unix geeks, and saves having
to hunt around and install system-specific alternatives.
1. **Fossil can copy all uncommitted changes from a checkout on a
remote system over to a checkout on the local machine.**
The command is [fossil patch pull](/help/patch). It contacts the
remote system via SSH, updates its local checkout to the same baseline
as is found on the remote, then pulls over a minimal set of diffs and
applies them.
This is very useful in pre-commit testing. For example, if you have
a big change on your desktop, and you want to test it before
committing, on multiple platforms, you can ssh over to those other
platforms and run "fossil patch pull ... && make test". When working
on SQLite, I will typically do that on a remote Mac, a remote
Win11 machine, and on a 32-core remote Linux machine that runs
faster than my desktop.
1. **Fossil can push uncommitted changes to a checkout on another
machine.**
This is the same as the previous but in reverse. It is used, for
example, to push proposed changes up to a secure sandbox to be
reviewed by Claude/Codex/Copilot prior to commit. The sandbox is
not able to pull, for security reasons, but it can accept a push.
1. **Fossil lets you set up aliases for remote checkouts with which
you commonly push or pull.**
My desktop is named "r21" and I normally do SQLite development
work in the directory ~/sqlite/sqlite. If I have uncommitted
changes that I want to test on Windows, I SSH over to the Win11
machine then run commands like:
Suppose you have some edits on a remote, headless machine and you
would like to review those changes. Fossil lets you see those
changes using a command like:
The way this works is that Fossil opens an SSH connection to the
remote machine that runs [fossil server](/help/server) on the
remote and that tunnels the HTTP content back through the SSH connection
to your desktop. At the same time, Fossil brings up your default
web browser and points it to the local end of your SSH tunnel.
That's a lot of network plumbing, but Fossil handles it all
automatically, so that you the developer don't need to think about it.
1. **Fossil lets you browse a repository on a remote, headless machine
over an SSH connection.**
Just run "fossil ui remote:path/to/repository" (substituting
in the name of the remote machine and the path to the repository you
want to browse, of course) and Fossil will pop up a new page on your
default web browser (on your desktop!) that is connected over an
SSH tunnel to that remote repository.
1. **Fossil lets you see all repositories on a remote, headless machine
all at once, over SSH.**
The command is "fossil ui remote:/". Substitute the name of
the remote machine, of course. The special pathname "/" indicates to
Fossil that you want to view all of the repositories on that machine.
It causes Fossil to consult the $HOME/.config/fossil.db file
(or %LOCALAPPDATA%/_fossil on Windows) to find the locations of all
repositories on the remote machine, then bring up a web page listing
all those repositories. Links on that initial page let you explore
deeper into the details of each repository.
1. **The Fossil web interface supports multiple timeline formats, to
accommodate personal tastes.**
The different formats are called "Views". The current repertoire
includes "Modern", "Columnar", "Compact", "Simple", "Verbose", and
"Classic". Users can select whichever format they want and their
preference is remembered in a cookie.
1. **A Fossil web server admin can set the default timeline format.**
Individual users have a lot of control over what their own timeline
displays look like, but the repository administrator can set the
default separately for each repository.
1. **Fossil is open and transparent about the cookies that it uses.**
There are really only three: The login cookie if you are logged in,
the robot cookie indicating that you have previously passed a captcha
if you are not logged in, and the display preferences cookie.
If you visit the
[/cookies page](/cookies), Fossil will
show you all the cookies it uses and it will decode them for you to
show you exactly what they mean and what information they are holding,
and Fossil will give you an opportunity to delete each cookie
individually.
1. **The Fossil web interface comes with a variety of "skins" built in.**
A skin determines the coloration and layout of Fossil web pages.
Visit the [/skins page](/skins) to see all the available skins and
which one is currently in use.
1. **Individual users get to choose their favorite Fossil skin.**
The repository administrator sets the default skin, but if
individual users do not like that choice, they can select a different
skin and their choice is recorded in the display preferences cookie.
1. **Repository administrators can create new custom skins.**
The current library of skins are mostly derived from custom skins that
users of Fossil have created over the years and generously donated
to the project. If none of the default skins work for you, you can
create your own, perhaps using one of the existing skins as a template.
1. **Most Fossil web-interface skins include a detailed hamburger
(☰) menu.**
Clicking on the hamburger menu brings up a dropdown "site-map"
page that lets you quickly navigate to the information you want.
(Note: The presence and operation of the hamburger menu is a
skin-specific feature and might not be available on every skin, but
it is used on the more popular skins.) Git itself has nothing like
this. The various Git forges sometimes have a limited hamburger
menu, that it is not nearly as complete. I find it difficult to
locate the screens I want without consulting an AI.
1. **The Fossil web interface /sitemap page is responsive to
individual user permissions and capabilities.**
Each user on the Fossil web interface, including the special
user "nobody" used if no login is attempted, has
"capabilities" assigned by the repository administrator.
Depending on capabilities, some pages will display differently or
will not display at all. Pages that a user does not have access
to are automatically omitted from the [/sitemap page](/sitemap).
1. **The Fossil web interface allows "anonymous" users.**
The "anonymous" user is a human (we think, because he has solved
a captcha) but we do not know who. Users who do not want to
identify themselves but who also don't want to be mistaken for
a spider or robot can log in as anonymous.
The repository administrator has complete control over the capabilities
of anonymous. Anonymous can be completely banned, or maybe given
read-only capabilities, or given complete access, with lots of shade
in between, according to the needs of the project.
The "anonymous" user is distinct from user "nobody" in that we
believe anonymous is a real human, whereas user nobody is presumed
to be a robot. The repository administrator also has complete control
over the capabilities for user "nobody".
1. **The Fossil web interface has lots of built-in defenses against
abuse by spiders and robots.**
Sadly, the internet is rapidly devolving such that most HTTP requests
now come from AI spiders trying to find training content, and/or robots
looking for website vulnerabilities. The flood of requests can
rapidly bog down an undefended server. Fossil includes a range of
defenses against aggressive bots that help keep the server load and
ISP costs down while still providing fast and detailed responses
to real humans. This is an on-going battle. But Fossil is, at least,
in the fight. Everything is easily configurable, via the web interface,
by repository administrators.
1. **The Fossil web interface includes a "security audit" page accessible
to repository administrators.**
The security-audit pages give a succinct summary of how a repository
web interface is configured, with an eye toward operational security.
As with any full-featured web application, the Fossil web interface
has a large number of settings. A common worry among system
administrators is overlooking or omitting or misconfiguring some
security-sensitive setting. The security-audit page is designed to
reduce that worry.
The security-audit page shows at a glance how a repository web interface
is set up, and raises alerts about any settings that are questionable
or that might facilitate mischief. The page fits on a single screen
with minimal or no scrolling. After standing up a new Fossil server,
a quick glance at the security-audit page (accessible only to
administrators) gives peace of mind that all is well and that nothing
was overlooked.
1. **The Fossil web interface menu bar can be customized.**
Repository administrators can customize the menu bar on the web
interface. Individual items can be added or omitted from the
menu bar based on user capabilities and/or whether or not the
client is a phone or other narrow-screen mobile device, a standard
desktop browser, or a wide-screen desktop browser.
1. **The Fossil web interface sitemap can be customized.**
Repository administrators can add new entries to the
[/sitemap](/sitemap) that are shown or omitted
based on user capabilities.
1. **The Fossil web interface can be augmented with auxiliary content
and/or CGIs that exist outside of the repository.**
The auxiliary content or CGI result uses the same theme and skin as
the default website, and blends right in. An example of this is
the
[SQLite Release Checklist](https://sqlite.org/src/ext/checklist/top/index).
The SQLite Release Checklist is a CGI that is completely separate from
Fossil, but appears to be integrated in the Fossil web interface.
It uses the same skin and interface settings. But the content is
created by a separate CGI program. Fossil passes down additional
CGI variables to tell the CGI what the Fossil user name is and what
capabilities that user has, among other things. In the case of the
SQLite Release Checklist, those additional settings mean only project
committers can make changes to the checklist (such as marking items
as "done") and that the checklist is read-only for the general public.
Additional information about this advanced feature of Fossil
can be seen at
The "fossil sha1sum FILE ..." and
"fossil sha3sum FILE ..." commands will
compute SHA1 and SHA3-256 hashes on files. These commands are not
necessary to use Fossil, but they are still useful, and they are
not commonly installed on non-Linux platforms. Fossil ensures that
those hash functions are available wherever Fossil is available.
1. **Fossil exposes its 3-way-diff algorithm for external use.**
The "fossil 3-way-merge ..." command works
like the classic unix "diff3" command in that it does a merge
of two variants of a file given a common ancestor. This is the
exact same algorithm that Fossil uses to compute merges internally,
simply exposed for external use.
1. **On a merge conflict, Fossil shows the conflicting inputs just
like other merge algorithms, but it also shows a suggested conflict
resolution.**
The suggested conflict resolution is not always correct, but it is
sometimes, and its presence often makes resolving merge conflicts
simpler.
1. **Fossil supports single sign-in when serving multiple repositories
from the same host computer.**
If you have a server that is hosting Fossil web interfaces for
multiple repositories, those repositories can be interconnected
into a common "login group" such that when a user logs into one
repository web interface, he is also automatically logged into
all other repositories in that login graph that hold the same
username. Furthermore, if the user
changes his password on one repository, it is automatically changed
on all the others within that login group.
1. **Experts can browse low-level details of a Fossil repository
using SQL.**
A Fossil repository is just an SQLite database file. Low-level content
of that database file can be viewed and even changed using ordinary
SQL and the "fossil sql" command. The "fossil sql"
command brings up a standard SQLite command-line shell, already
connected to the repository database, and extended to include extra
functions (including table-valued functions) to help interpret the
low-level content of the repository. This feature is not needed nor
recommended for the average user. However, if you want to learn more
about the inner workings of Fossil, or if you want to generate some
custom reports about a repository, or if you are extending or
troubleshooting Fossil, the SQL interface is a great tool.
1. **The underlying artifacts of a Fossil repository are well-documented,
human-readable, and human-understandable.**
A Fossil repository is an SQLite database file, but not every SQLite
database file is a Fossil repository. Fossil repositories store
"artifacts" in a very particular format. See
This underlying format is text-only. It is designed to be easily
parsed and interpreted by programs written in any language. It is
designed to be easily understood by humans, even humans not yet born.
Many of the low-level artifact formats for Git, in contrast, are
binary and are only thinly documented. The only sure way to understand
the low-level Git format is, in my experience, to read the Git source
code.
1. **The Fossil web interface has a "This Day In History" page.**
See that page for [Fossil](/thisdayinhistory) or
[SQLite](https://sqlite.org/src/thisdayinhistory).
The page shows multiple timeline snippets from various
days in the past: 1, 2, 5, 10, 15, 20 years ago.
This is something of a vanity page. It is difficult to describe a
real business need for this information. But the page does jog old
memories and helps developers keep perspective on how a project has
changed through the years.
The existence of this page illustrates how the
robust and modular design of the Fossil implementation
facilitates custom modifications that involve very little new code.
1. **Fossil allows you to update your current checkout even if it
contains uncommitted changes.**
This is a very common idiom in Fossil: You are working on changes
and somebody commits ahead of you. You run
"fossil up" ("up" is short for "update") and the new
external changes are merged into your own uncommitted changes. You
continue working.
Doing this in Git appears to require multiple commands (or maybe
just one command with multiple verbose options) to interact with
the stash and to rebase your changes.
1. **Fossil lets you undo an update.**
If you run "fossil up" on a checkout that contains
uncommitted changes, and the update does not go well (for example,
if there are a lot of merge conflicts) you can back out the update
by running "fossil undo".
The need for this does not arise often, because
"fossil up" normally just works. But the ability to
undo is a nice safety-net for the rare cases when the update goes awry.
1. **Fossil warns you if you try to commit and somebody else has
committed ahead of you.**
You can then run "fossil up" and then retest and retry.
Or you can override the warning and force Fossil to commit anyhow,
thus forking the branch. Either way,
you enter the commit with more knowledge about what is happening,
and thus improved situational awareness.
1. **Every Fossil project has a unique identifier**.
When a new repository is created, the unique identifier is created
and stored in the repository. That identifier is called the
"project code". The identifier is copied with every
clone. (Uniqueness is probabilistic. The identifier simply contains
enough of high-quality randomness to make it unlikely that there
will ever be a collision.)
It is not possible in Fossil to push to or pull from a repository
with the wrong project code. Thus you cannot contaminate one
project with code from another simply by specifying the wrong
remote and adding the --force flag, as is apparently possible in Git.
1. **Each Fossil repository keeps an audit trail.**
For each new artifact received into a Fossil repository, by push or
pull, or by direct commit from the command line, Fossil records a
timestamp, username, and an IP address (where applicable) for
that artifact. If harmful or malicious content is added to
a repository, the repository administrator has the capability to
trace that content back to its source, so that appropriate
sanctions can be applied to the malefactor.
1. **Fossil stores content in a power-safe ACID database.**
The repository content cannot be corrupted by a program crash,
system crash, or unexpected power loss. The repository moves
from one consistent state to another, atomically. This helps
ensure that the resources stored in Fossil are kept safe,
even if the Fossil implementation itself contains bugs.
The underlying database engine used by Fossil is SQLite, of course.
Git also claims to be transactional. However, because Git does
not use a separate database engine, the transactional integrity
of Git depends entirely upon the correctness of the Git code
itself. Git is thus far more sensitive to implementation errors.
1. **Fossil supports a built-in graphical diff tool.**
Running "fossil gdiff" show the currently
uncommitted changes in a Tk-based graphical display. This
is built into Fossil and does not require any external tools
(though it does require Tcl/Tk). Git requires external tooling
in order to do the same.
1. **Fossil supports showing diffs in a web browser.**
Adding the "-b" or "-by" option to any Fossil
diff command causes that diff to be rendered as a new page in
the users default web browser. Git does not have any such
capability, even with the aid of external programs, as far as
I am aware.
1. **The Fossil web interface provides a captcha-gated method to download
tarballs and ZIP archives for any check-in.**
See, for example,
Tarballs and ZIP archives are expensive to compute, not because Fossil
has trouble assembling the content,
but rather because the result must be run through zlib compression.
When computing a new archive, almost all of the CPU time is spent
inside of the zlib compression library.
For an SQLite-size tarball, the zlib compression alone can take as
much as 10 seconds of CPU time. If the tarball/ZIP-archive download
link is not protected by a captcha, multiple spiders will attempt to
download every possible tarball and ZIP archive, multiple times per
day, bringing your server to its knees.
1. **Repository administrators can create a cache of recently downloaded
tarballs and ZIP archives**
That way, if there are common downloads (like the most recent release)
the archive does not get recomputed from scratch with each download.
A download of a cached archive file is fast.
The size of the cache is configurable by the repository administrator.
1. **The Fossil web interface has a "Repository Status" page that shows
interesting and useful facts about the repository being served.**
See the [stat page for Fossil](/stat) for example.
1. **The Fossil web interface easily shows all of the contributors to
a project, and the number of changes they have committed.**
See The page is captcha-gated since it is a magnet for spiders.
1. **The Fossil source code is easy to enhance with new web pages and
commands.**
The design of the Fossil implementation makes it easy to extend with
new capabilities as needs arise.
The ease with which Fossil can be enhanced is part of the reason why
it has picked up so many useful features and has become so
powerful over its 19-year history.
## Conclusion
There are more reasons to prefer Fossil over Git, but
I think 101 are sufficient to prove my point.
#!/usr/bin/fossil
repository: /Fossils/fossil.fossil
You can, of course, also create a self-hosting website using
GitLab or Forgejo or similar, but the setup and maintenance is
somewhat more involved. You'll also probably need a bigger machine
if you are using GitLab, whereas a Fossil website
works fine on a 2GiB Raspberry PI or a $6/month VPS.
I am told that Gitea and Forgejo also work well on a small machine.
No direct size and performance comparisons between Gitea/Forgejo and
Fossil have been made, as of this writing.
1. **Fossil makes it easy to set up a project website using SCGI.**
fossil patch pull r21:sqlite/sqlite -f
make clean test
But typing in "r21:sqlite/sqlite" can be tedious and error-prone,
maybe not so much in this particular example but definitely the
case for longer hostnames and subdirectory paths. Fortunately,
Fossil allows us to define patch alias. On my Win11 machine,
the alias named "@" is defined as "r21:sqlite/sqlite" and so I
can get by with typing just:
fossil patch pull @ -f
(Aside: the -f option tells the command to first "revert" any
uncommitted changes currently in the checkout prior to pulling
over the new ones from r21:sqlite/sqlite. Without that option, the
changes would be merged.)
1. **Fossil allows you to view uncommitted changes on a remote machine
in a web browser over SSH.**
fossil ui remote:path/to/checkout
Substitute the name of your remote and the path to the checkout
on the remote, of course.