Linux command
hg-init 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create repository in current directory
hg init
Create repository in new directory
hg init [project-name]
说明
hg init creates a new Mercurial repository in the specified directory or current directory if none given. It creates a .hg subdirectory containing all version control data. After initialization, use hg add to track files and hg commit to save changesets. The working directory contains the source files while .hg stores the repository history.
FAQ
What is the hg-init command used for?
hg init creates a new Mercurial repository in the specified directory or current directory if none given. It creates a .hg subdirectory containing all version control data. After initialization, use hg add to track files and hg commit to save changesets. The working directory contains the source files while .hg stores the repository history.
How do I run a basic hg-init example?
Run `hg init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more hg-init examples?
This page includes 2 examples for hg-init, plus related commands for nearby Linux tasks.