git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How do you switch branches in a bare repo?

From
Adam Nielsen <adam.nielsen@uq.edu.au>
Date
Mar 12, 2010, 07:38 UTC
Message-ID
<4B99EF6F.90207@uq.edu.au>
In-Reply-To
<4B99EE7C.4060902@viscovery.net>
> Perhaps non-fast-forwards are denied for a reason?
> 
> If not, then you can enable them by setting receive.denynonfastforwards to
> false in the bare repository.

Ah, that did the trick! Although it was actually receive.denyNonFastforwards for me (adding the lowercase option had no effect, I had to edit the fancy-case version.)

But that allowed the push to work and I have gotten rid of my unwanted commits, so thanks a lot for your help!

Cheers, Adam.

Previous: Johannes SixtNext: Michael Witten
Message 5 of 8 in “How do you switch branches in a bare repo?”
  1. Adam NielsenMar 12, 2010
  2. Johannes SixtMar 12, 2010
  3. Adam NielsenMar 12, 2010
  4. Johannes SixtMar 12, 2010
  5. Adam NielsenMar 12, 2010
  6. Michael WittenMar 12, 2010
  7. Jonathan NiederMar 12, 2010
  8. Junio C HamanoMar 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.