git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* confusion with some `git reset` commands
@ 2014-12-16 18:39 Arup Rakshit
  2014-12-18  8:23 ` Kevin
  2014-12-18 12:09 ` Konstantin Khomoutov
  0 siblings, 2 replies; 4+ messages in thread
From: Arup Rakshit @ 2014-12-16 18:39 UTC (permalink / raw)
  To: git

Hi,

>From the command help I see - 

[arup@to_do_app]$ git reset -h
usage: git reset [--mixed | --soft | --hard | --merge | --keep] [-q] 
[<commit>]
   or: git reset [-q] <tree-ish> [--] <paths>...
   or: git reset --patch [<tree-ish>] [--] [<paths>...]

    -q, --quiet           be quiet, only report errors
    --mixed               reset HEAD and index
    --soft                reset only HEAD
    --hard                reset HEAD, index and working tree
    --merge               reset HEAD, index and working tree
    --keep                reset HEAD but keep local changes
    -p, --patch           select hunks interactively

But I am looking for any differences -

a) git reset --soft and git reset --keep
b) git reset --hard and git reset --merge


-- 
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore, 
if you write the code as cleverly as possible, you are, by definition, not 
smart enough to debug it.

--Brian Kernighan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-18 12:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 18:39 confusion with some `git reset` commands Arup Rakshit
2014-12-18  8:23 ` Kevin
2014-12-18  8:38   ` Christian Couder
2014-12-18 12:09 ` Konstantin Khomoutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).