Re: [git-users] recover from hard reset

2013-04-28 Thread William Seiti Mizuta
William Seiti Mizuta @williammizuta Caelum | Ensino e Inovação www.caelum.com.br On Mon, Apr 29, 2013 at 3:16 AM, Lei Yang wrote: > hi > > You misunderstand my question,I want to recover my local changes, after I > do a hard reset ,it's gone. > > Sent from my iPhone > > As Thomas said, you can

Re: [git-users] recover from hard reset

2013-04-28 Thread Lei Yang
hi You misunderstand my question,I want to recover my local changes, after I do a hard reset ,it's gone. Sent from my iPhone On 2013-4-29, at 14:10, John McKown wrote: > I'm no expert, but I'd try: > > git reset --hard local_commit > > if "local_commit" is some sort of name. Or it can be th

Re: [git-users] recover from hard reset

2013-04-28 Thread John McKown
I'm no expert, but I'd try: git reset --hard local_commit if "local_commit" is some sort of name. Or it can be that long 40 character commit value. If you don't know where you want to go back to, you might try a git log to find the commit value and use it (cut and paste if possible. I don't lik