Linux command
yadm-init 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize
yadm init
Force reinitialization
yadm init -f
Initialize with a custom worktree
yadm init -w [path/to/worktree]
说明
yadm init creates a new, empty repository for tracking dotfiles. The repository is initialized at $HOME/.local/share/yadm/repo.git with $HOME as the default work-tree. This is the first step for starting dotfiles management with yadm. If a repository already exists, the -f flag is required to force reinitialization.
参数
- -f
- Force reinitialization of an existing repository.
- -w _dir_
- Override the default work-tree ($HOME) with the specified directory.
FAQ
What is the yadm-init command used for?
yadm init creates a new, empty repository for tracking dotfiles. The repository is initialized at $HOME/.local/share/yadm/repo.git with $HOME as the default work-tree. This is the first step for starting dotfiles management with yadm. If a repository already exists, the -f flag is required to force reinitialization.
How do I run a basic yadm-init example?
Run `yadm init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f do in yadm-init?
Force reinitialization of an existing repository.