git.vger.kernel.org archive mirror
 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).