Forrest logo
back to the hg tool

hg-pull:tldr:78c77

hg-pull: Pull from a specified source repository.
$ hg pull ${path-to-source_repository}
try on your machine

This command is used to pull changes from a source repository into the current repository using the Mercurial (hg) version control system.

  • "hg pull" is the command to pull changes from a remote repository.
  • "${path-to-source_repository}" is a placeholder for the actual path to the source repository. You should replace it with the correct path.

When you execute this command, it connects to the source repository specified by the path and fetches the changesets and updates to local branches. It doesn't automatically update your working directory, but brings in the changes as a new branch heads. To apply the pulled changes to your working directory, you would typically use the "hg update" command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hg tool