hg checkout
and hg update
are aliases for each other, so can be used interchangeably. From the help for hg update
:
hg update [-c] [-C] [-d DATE] [[-r] REV]
aliases: up, checkout, co
update working directory (or switch revisions)
-C
or --clean
option is used to throw away uncommitted changes when switching.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…