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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

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