All of lore.kernel.org
 help / color / mirror / Atom feed
* What does git reset do?
@ 2010-02-02  7:47 Ron Garret
  2010-02-02  8:01 ` Octavio Alvarez
  2010-02-02 15:30 ` Jakub Narebski
  0 siblings, 2 replies; 5+ messages in thread
From: Ron Garret @ 2010-02-02  7:47 UTC (permalink / raw)
  To: git

The docs say that git-reset:

"Sets the current head to the specified commit..."

So I tried this:


[ron@mickey:~/devel/gittest]$ git branch
* br1
  master
[ron@mickey:~/devel/gittest]$ git reset --soft master


...expecting HEAD to now point to master.  But it doesn't:


[ron@mickey:~/devel/gittest]$ git branch
* br1
  master
[ron@mickey:~/devel/gittest]$ more .git/HEAD 
ref: refs/heads/br1


So... what does git reset do?

Thanks,
rg

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-02 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02  7:47 What does git reset do? Ron Garret
2010-02-02  8:01 ` Octavio Alvarez
2010-02-02  8:24   ` Ron Garret
2010-02-02  8:37     ` Octavio Alvarez
2010-02-02 15:30 ` Jakub Narebski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.