Is `hg pull --rebase` analogous to `svn update`?

前端 未结 5 2132
情歌与酒
情歌与酒 2021-02-01 05:47

This question assumes there\'s a \"blessed\" central repository that members of a team

  1. clone from
  2. push to when they have contributions that they want othe
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 06:02

    hg pull --update
    

    would be an equivalent of svn update

    As described in this SO question

    The hg command push and pull move changes between repositories and update and commit moves changes between your working copy and your local repository.

    So in a DVCS, you have 2 notions instead of one:

    • local repo (pull/push)
    • working directory (which is the only local representation of the "tip" of a repo with SVN)

提交回复
热议问题