2025-03-14 21:59:59 -06:00
|
|
|
# fossil
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> Distributed version control system with a built-in wiki, bug tracker, and web interface.
|
2025-03-14 21:59:59 -06:00
|
|
|
> Some subcommands such as `commit` have their own usage documentation.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://fossil-scm.org/home/help>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Initialize a new empty Fossil repository:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`fossil init {{repository_name.fossil}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Create a local copy of a remote repository:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`fossil clone {{remote_url}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Show an overview of the current repository state:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`fossil status`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Stage a new file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`fossil add {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Stage a file for removal:
|
|
|
|
|
|
|
|
|
|
`fossil {{[rm|delete]}} {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Check in all staged changes:
|
|
|
|
|
|
|
|
|
|
`fossil {{[ci|commit]}} {{[-m|--comment]}} "{{comment}}"`
|
|
|
|
|
|
|
|
|
|
- Push changes from the local repository to a remote repository:
|
|
|
|
|
|
|
|
|
|
`fossil push {{remote_url}}`
|
|
|
|
|
|
|
|
|
|
- Pull changes from a remote repository into the local repository:
|
|
|
|
|
|
|
|
|
|
`fossil pull {{remote_url}}`
|