I'm looking for the equivalent of git fetch --all
. I currently have three different remote paths configured for my repository. hg paths
shows all three. How do I do hg pull --all
to fetch the new change sets from all remote repositories?
I figured out how to do this with an alias. In your ~/.hgrc
add:
[alias]
pullall = !$HG paths | cut -f 1 -d ' ' | xargs -n 1 $HG pull
Then you can run hg pullall
to fetch all the remotes.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.