LinuxCommandLibrary

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community