代码之家  ›  专栏  ›  技术社区  ›  wrongusername

在多变的分支之间切换

  •  39
  • wrongusername  · 技术社区  · 15 年前

    如果我看看 Mercurial's site ,它似乎告诉我使用 update -C Stack Overflow 答说用 checkout 相反。

    有什么区别?在我看来 也将工作目录中的文件更新到分支,如 更新-C .

    1 回复  |  直到 8 年前
        1
  •  51
  •   anatoly techtonik Tony    12 年前

    hg checkout 和 hg update hg更新

    hg update [-c] [-C] [-d DATE] [[-r] REV]
    
    aliases: up, checkout, co
    
    update working directory (or switch revisions)
    

    -C 或 --clean 选项用于在切换时丢弃未提交的更改。

    推荐文章