RE: Reset by checkout?
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 31, 2014, 10:56 UTC
- Message-ID
- <5389b57138645_68b153b2f8a5@nysa.notmuch>
- In-Reply-To
- <20140531144610.754B.B013761@chejz.com>
Atsushi Nakagawa wrote:
Show 5 quoted lines
> Ok, the typical use case is: I'm on 'master' and I make a few test > commits. Afterwards, I want to discard the commits and move back to > 'origin/master'. I could type 'reset --hard origin/master' and risk > blowing away dirty files if I'm not careful. Or, I could use "reset by > checkout" and be carefree.
Doesn't 'git reset orign/master' do that?
-- Felipe Contreras