Git development
 help / color / mirror / Atom feed
* Usability of git-update-ref <headname>
@ 2007-07-04  2:08 Martin Langhoff
  2007-07-04  4:12 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Langhoff @ 2007-07-04  2:08 UTC (permalink / raw)
  To: Git Mailing List

A few times now I've done the following

  # I think I'm on master, but I'm acually on maint
  git-branch foo-feature
  git-checkout foo-feature

  # realise I've branched in the wring place
  git-update-ref foo-feature master

And from that point, all sorts of things go weird, because I should have said

  git-update-ref refs/heads/foo-feature master

to fix it up I have to manually rm .git/foo-feature -- and I can't see
a way to remove a ref with git-update-ref, so if I was using packed
refs I'd be in trouble ;-)

Am I using the wrong command? I'd be happy to remove the bogus head
and create a new one, but I don't think we have git-rm-ref.



m

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

end of thread, other threads:[~2007-07-04  4:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04  2:08 Usability of git-update-ref <headname> Martin Langhoff
2007-07-04  4:12 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox