LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fossil-commit

record changes to repository

TLDR

Commit with message
$ fossil commit -m "[message]"
copy
Commit interactively
$ fossil commit
copy
Commit specific files
$ fossil commit [file1] [file2] -m "[message]"
copy
Commit to new branch
$ fossil commit --branch [branch_name] -m "[message]"
copy
Amend last commit
$ fossil amend [checkin] -m "[new message]"
copy

SYNOPSIS

fossil commit [options] [files...]

DESCRIPTION

fossil commit records changes in the working copy to the repository, creating a new check-in with the specified comment. All files previously added or modified are included in the commit.The command opens an editor for the commit message if -m is not provided. Unlike Git, Fossil uses autosync by default, potentially pushing changes to configured remotes immediately after commit.Commits can create new branches, add tags, and include metadata like timestamps and user information. The --private option creates commits that won't be pushed to public repositories.

PARAMETERS

-m, --comment text

Commit message.
--branch name
Create new branch.
--tag name
Add tag.
--private
Make commit private.
--allow-empty
Allow empty commit.
--close
Close branch after commit.

INSTALL

sudo apt install fossil
copy
sudo dnf install fossil
copy
sudo pacman -S fossil
copy
sudo apk add fossil
copy
sudo zypper install fossil
copy
brew install fossil
copy
nix profile install nixpkgs#fossil
copy

SEE ALSO

Copied to clipboard
Kai