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

Re: Using alternate working directory

From
Ram Rachum <ram@rachum.com>
Date
Sep 24, 2013, 04:27 UTC
Message-ID
<524114B9.40001@rachum.com>
In-Reply-To
<523E09D8.8090808@rachum.com>
Does anyone care to help? I'd really like to solve this  :(
On 22/9/2013 00:04, Ram Rachum wrote:
Show 28 quoted lines
> Hi everybody!
>
> I need some help with Git.
>
> I'm making a script `gm` which lets me merge one branch into another 
> without having either checked out. It works for some cases but not 
> all. I'm trying to make it work for more cases.
>
> I concluded that the best way to do it would be by using an alternate, 
> temporary working directory instead of the repo itself.
>
> This is my script:
>
>     https://gist.github.com/cool-RR/6575042
>
> Now, the problem is that when I try it, it gives these errors:
>
>     git checkout-index: my_file is not in the cache and then error:
>     my_file: cannot add to the index - missing --add option?
>
> Anyone has any idea what to do?
>
> P.S. I've also asked this on Stack Overflow, so whoever comes up with 
> an answer can claim his 150 imaginary internet points on that question.
>
>
> Thanks,
> Ram.
Previous: Ram RachumNext: Jeff King
Message 2 of 3 in “Using alternate working directory”
  1. Ram RachumSep 21, 2013
  2. Ram RachumSep 24, 2013
  3. Jeff KingSep 24, 2013

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.