[git-users] Switching to another hash on branch

2013-10-16 Thread Roy Vardi
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 fin

Re: [git-users] Switching to another hash on branch

2013-10-16 Thread Roy Vardi
Hi, git checkout 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

Re: [git-users] Switching to another hash on branch

2013-10-16 Thread Roy Vardi
u can no longer be on master (aaa). You can git-reset, if you don't need > aaa's changes any more, but bare in mind that it can mess up things if you > are using remotes. > > Cheers, > Gergely > On 16 Oct 2013 14:10, "Roy Vardi" > wrote: > >> Hi,

Re: [git-users] Switching to another hash on branch

2013-10-16 Thread Roy Vardi
Got it, thanks!!! On Wednesday, October 16, 2013 3:59:57 PM UTC+3, Dale Worley wrote: > > > From: Roy Vardi > > > > > 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, an

Re: [git-users] Switching to another hash on branch

2013-10-17 Thread Roy Vardi
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 > > wrote: > > Hi, > > > > Simple question: > > How do I switch to a hash on a branch without creating\moving to a new > > bra