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

Re: git svn rebase - could not detach HEAD

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 7, 2008, 14:24 UTC
Message-ID
<alpine.LNX.1.00.0808071013190.19665@iabervon.org>
In-Reply-To
<f7d8f60b0808070553o6f709445j9dd036f380763f6e@mail.gmail.com>
On Fri, 8 Aug 2008, Tony Stubbs wrote:
Show 12 quoted lines
> >> <manually deleted "untracked file" here>
> >
> > Maybe you're ignoring that file? git clean deletes ignored files only if
> > you use -x/-X.
> >
> > Björn
> >
> 
> That's probably it, I'll try it tomorrow. However, that could be a
> problem. There's ignored files I don't want to keep (build artifacts),
> and there's ignored files I do want to keep (i.e. .metadata).
> Is there a good solution?

There's only a problem if there's some reason you specifically want to not keep an ignored file; this is usually only an issue when you're trying to merge/rebase with a branch that has it tracked, at which point you have to decide whether to add your version and merge or remove your version. Ideally, git would tell you when the file that's in the way is ignored, which would probably help you know what's going on, but it's tricky to get that information there.

	-Daniel
*This .sig left intentionally blank*
Previous: Tony Stubbs
Message 7 of 7 in “git svn rebase - could not detach HEAD”
  1. Tony StubbsAug 7, 2008
  2. Tony StubbsAug 7, 2008
  3. Junio C HamanoAug 7, 2008
  4. Tony StubbsAug 7, 2008
  5. Björn SteinbrinkAug 7, 2008
  6. Tony StubbsAug 7, 2008
  7. Daniel BarkalowAug 7, 2008

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.