开发者

How get Mercurial changes when I've already used hg clone?

开发者 https://www.devze.com 2023-01-21 03:25 出处:网络
Worked on my repo from work, and hg pushed the changes. Now in my home computer, how do I get the changes I saved from work considering I\'ve already hg cloned the repo about two weeks ago but haven\'

Worked on my repo from work, and hg pushed the changes. Now in my home computer, how do I get the changes I saved from work considering I've already hg cloned the repo about two weeks ago but haven't updated since?

I need something like a hg getchanges or something?

http://bitbucket.org/sergiotap开发者_JS百科ia/sharpdic


hg pull followed by hg update should do the trick.


$ hg pull     # copy changesets from remote default path to local repo
$ hg update   # update working directory

$ hg pull -u  # above two commands in one step

The default path is the 'default' key in the paths section of .hg/hgrc in your repo; see hg help paths for more. Authorization info (required to push to bitbucket) is either stored in that URL (http://user:pass@...) or the auth section of .hg/hgrc or ~/.hgrc.

0

精彩评论

暂无评论...
验证码 换一张
取 消