git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do you switch branches in a bare repo?
@ 2010-03-12  6:26 Adam Nielsen
  2010-03-12  6:57 ` Johannes Sixt
  2010-03-12  8:09 ` [Improvement?] " Michael Witten
  0 siblings, 2 replies; 8+ messages in thread
From: Adam Nielsen @ 2010-03-12  6:26 UTC (permalink / raw)
  To: git

Hi all,

I want to remove some commits (with git reset) from a bare repo, but 
they're not in the master branch and I can't figure out how to change 
branches:

$ git checkout newbranch
fatal: This operation must be run in a work tree

I've tried running the reset locally and pushing the change (with -f) 
but that doesn't work either, and Google isn't being much help.

How do you switch between branches in a bare repo?

Many thanks,
Adam.

(Please CC)

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

end of thread, other threads:[~2010-03-14  6:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12  6:26 How do you switch branches in a bare repo? Adam Nielsen
2010-03-12  6:57 ` Johannes Sixt
2010-03-12  7:12   ` Adam Nielsen
2010-03-12  7:34     ` Johannes Sixt
2010-03-12  7:38       ` Adam Nielsen
2010-03-12  8:09 ` [Improvement?] " Michael Witten
2010-03-12 16:48   ` Jonathan Nieder
2010-03-14  6:52   ` 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;
as well as URLs for NNTP newsgroup(s).