tldr/pages/common/hg-init.md

13 lines
297 B
Markdown
Raw Normal View History

2018-01-11 09:09:12 +00:00
# hg init
> Create a new repository in the specified directory.
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#init>.
2018-01-11 09:09:12 +00:00
2022-06-27 11:23:12 +01:00
- Initialize a new repository in the current directory:
2018-01-11 09:09:12 +00:00
`hg init`
2022-06-27 11:23:12 +01:00
- Initialize a new repository in the specified directory:
2018-01-11 09:09:12 +00:00
`hg init {{path/to/directory}}`