mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 19:42:38 +00:00
Update cheatsheets
This commit is contained in:
2
tldr/hg
2
tldr/hg
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Mercurial - a distributed source control management system.
|
||||
> Some subcommands such as `commit` have their own usage documentation.
|
||||
> More information: <https://www.mercurial-scm.org>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands>.
|
||||
|
||||
- Execute a Mercurial command:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg add
|
||||
|
||||
> Adds specified files to the staging area for the next commit in Mercurial.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#add>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/add>.
|
||||
|
||||
- Add files or directories to the staging area:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg branch
|
||||
|
||||
> Create or show a branch name.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#branch>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/branch>.
|
||||
|
||||
- Show the name of the currently active branch:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ 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>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/clone>.
|
||||
|
||||
- Clone a repository to a specified directory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg commit
|
||||
|
||||
> Commit all staged or specified files to the repository.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#commit>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/commit>.
|
||||
|
||||
- Commit staged files to the repository:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg init
|
||||
|
||||
> Create a new repository in the specified directory.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#init>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/init>.
|
||||
|
||||
- Initialize a new repository in the current directory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg log
|
||||
|
||||
> Display the revision history of the repository.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#log>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/log>.
|
||||
|
||||
- Display the entire revision history of the repository:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg pull
|
||||
|
||||
> Pull changes from a specified repository to the local repository.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#pull>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/pull>.
|
||||
|
||||
- Pull from the "default" source path:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg push
|
||||
|
||||
> Push changes from the local repository to a specified destination.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#push>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/push>.
|
||||
|
||||
- Push changes to the "default" remote path:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg remove
|
||||
|
||||
> Remove specified files from the staging area.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#remove>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/remove>.
|
||||
|
||||
- Remove files or directories from the staging area:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg root
|
||||
|
||||
> Display the root location of a Hg repository.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#root>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/root>.
|
||||
|
||||
- Display the root location of the current repository:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg serve
|
||||
|
||||
> Start a standalone Mercurial web server for browsing repositories.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#serve>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/serve>.
|
||||
|
||||
- Start a web server instance:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg status
|
||||
|
||||
> Show files that have changed in the working directory.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#status>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/status>.
|
||||
|
||||
- Display the status of changed files:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hg update
|
||||
|
||||
> Update the working directory to a specified changeset.
|
||||
> More information: <https://www.mercurial-scm.org/doc/hg.1.html#update>.
|
||||
> More information: <https://www.mercurial-scm.org/help/commands/update>.
|
||||
|
||||
- Update to the tip of the current branch:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user