How do I “switch” with Mercurial

前端 未结 5 842
耶瑟儿~
耶瑟儿~ 2021-01-31 01:25

How do I do what svn switch does, in Mercurial?

That is change my working directory to switch to another branch in the repository?

5条回答
  •  情歌与酒
    2021-01-31 01:53

    To switch to a remote branch 'tip':

    hg pull -u 
    

    For local branch (already up-to-date) just:

    hg update -r 
    

提交回复
热议问题