Hg update -C mercurial command equivalent in git -



Hg update -C mercurial command equivalent in git -

suppose have made changes several files in git repository exploratory purposes , want undo of changes original state.

if mercurial do

hg -c

what proper way acheive in git?

if wish discard changes 1 file can type:

git checkout -- <file>

(actually "git status" giving hint).

if want throw away local changes:

git checkout -f

git mercurial

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -