Linux command
fossil-init 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new repository
fossil init [repo.fossil]
Create with admin password
fossil init --admin-user [admin] [repo.fossil]
Create with project name
fossil init --project-name "[name]" [repo.fossil]
说明
fossil init creates a new Fossil repository file. The repository is a single SQLite database that contains all history, wiki, tickets, and project metadata. After initialization, use fossil open to create a working directory. The repository file can be hosted via fossil ui for web access or served over HTTP for remote collaboration. Repository settings include project name, description, and admin credentials. The --template option allows creating repositories based on existing ones, inheriting their configuration.
参数
- --admin-user _name_
- Set admin username.
- --project-name _name_
- Set project name.
- --project-desc _text_
- Set project description.
- --template _repo_
- Use template repository.
- --date-override _datetime_
- Override initial check-in date.
FAQ
What is the fossil-init command used for?
fossil init creates a new Fossil repository file. The repository is a single SQLite database that contains all history, wiki, tickets, and project metadata. After initialization, use fossil open to create a working directory. The repository file can be hosted via fossil ui for web access or served over HTTP for remote collaboration. Repository settings include project name, description, and admin credentials. The --template option allows creating repositories based on existing ones, inheriting their configuration.
How do I run a basic fossil-init example?
Run `fossil init [repo.fossil]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --admin-user _name_ do in fossil-init?
Set admin username.