author | Junio C Hamano <junkio@cox.net> | |
Thu, 14 Dec 2006 09:19:19 +0000 (01:19 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 14 Dec 2006 10:45:51 +0000 (02:45 -0800) | ||
commit | 2ce633b928f78224a37308f45810e76fefe8df56 | |
tree | 7fd42d3f4286eacc29dfaa2907fbcbf03b6b5051 | tree | snapshot |
parent | a81c311f23a5fadd6c1da38d46781644cd9db6e8 | commit | diff |
git-reset [--mixed] <tree> [--] <paths>...
Sometimes it is asked on the list how to revert selected path in
the index from a tree, most often HEAD, without affecting the
files in the working tree. A similar operation that also
affects the working tree files has been available in the form of
"git checkout <tree> -- <paths>...".
By definition --soft would never affect either the index nor the
working tree files, and --hard is the way to make the working
tree files as close to pristine, so this new option is available
only for the default --mixed case.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Sometimes it is asked on the list how to revert selected path in
the index from a tree, most often HEAD, without affecting the
files in the working tree. A similar operation that also
affects the working tree files has been available in the form of
"git checkout <tree> -- <paths>...".
By definition --soft would never affect either the index nor the
working tree files, and --hard is the way to make the working
tree files as close to pristine, so this new option is available
only for the default --mixed case.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset.sh | diff | blob | history |