Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

29
tldr/hg-clone Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# hg clone
> Create a copy of an existing repository in a new directory.
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#clone>.
- Clone a repository to a specified directory:
`hg clone {{remote_repository_source}} {{destination_path}}`
- Clone a repository to the head of a specific branch, ignoring later commits:
`hg clone --branch {{branch}} {{remote_repository_source}}`
- Clone a repository with only the `.hg` directory, without checking out files:
`hg clone --noupdate {{remote_repository_source}}`
- Clone a repository to a specific revision, tag or branch, keeping the entire history:
`hg clone --updaterev {{revision}} {{remote_repository_source}}`
- Clone a repository up to a specific revision without any newer history:
`hg clone --rev {{revision}} {{remote_repository_source}}`