Hi,

git checkout <hash> 
results in moving me to a * (no branch)  - If I was on master before the 
checkout, after the checkout i'm on no branch...
Would like to stay on master...

On Wednesday, October 16, 2013 2:18:11 PM UTC+3, Magnus Therning wrote:
>
> On Wed, Oct 16, 2013 at 12:45 PM, Roy Vardi <roy....@gmail.com<javascript:>> 
> wrote: 
> > Hi, 
> > 
> > Simple question: 
> > How do I switch to a hash on a branch without creating\moving to a new 
> > branch? 
> > Say I'm currently at the HEAD of master, and its hash is aaa. 
> > I want to stay on master, only switch to a previous hash... (say eee...) 
> > I know I can use the HEAD~<#> or whatever, but I'd like to find out how 
> to 
> > do it based only on a hash... 
>
> I might be misunderstanding you completely, but haven't you tried `git 
> checkout <hash>`? 
>
> /M 
>
> -- 
> Magnus Therning                      OpenPGP: 0xAB4DFBA4 
> email: mag...@therning.org <javascript:>   jabber: 
> mag...@therning.org<javascript:> 
> twitter: magthe               http://therning.org/magnus 
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to