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

Re: Please consider adding a -f switch to git-clone (or something similar)

From
DVDiego Viola <diego.viola@gmail.com>
Date
Mar 8, 2015, 01:53 UTC
Message-ID
<CA+ToGPFSbOjfd5gJg+r-7WkwMB=m=4sOupaZo1WUn+O0bxAAXw@mail.gmail.com>
In-Reply-To
<CA+ToGPHOM9mu_ng4wVc7QUGyvf09y=nDjE32oSh9JzKbpbzN2Q@mail.gmail.com>
Something like this is the scenario I'm talking about:
$ mkdir non-empty-dir
$ cd non-empty-dir
$ touch foo bar baz
$ git clone -f url:user/dotfiles.git .
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)
    bar
    baz
    foo
nothing added to commit but untracked files present (use "git add" to track)
On Sat, Mar 7, 2015 at 9:02 PM, Diego Viola <diego.viola@gmail.com> wrote:
Show 22 quoted lines
> Sorry, I wanted to say: I know I can git-clone in a empty directory
> and then move the files over to $HOME.
>
> I know I can git init in a non-empty directory. :-)
>
> Thanks,
>
> Diego
>
> On Sat, Mar 7, 2015 at 7:26 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>> Diego Viola <diego.viola@gmail.com> writes:
>>
>>> I know I could git-init in a empty directory
>>
>> You can also git init a non-empty directory.
>>
>> Andreas.
>>
>> --
>> Andreas Schwab, schwab@linux-m68k.org
>> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
>> "And now for something completely different."
Previous: Diego ViolaNext: Kyle J. McKay
Message 5 of 7 in “Please consider adding a -f switch to git-clone (or something similar)”
  1. Diego ViolaMar 7, 2015
  2. Andreas SchwabMar 7, 2015
  3. brian m. carlsonMar 7, 2015
  4. Diego ViolaMar 8, 2015
  5. Diego ViolaMar 8, 2015
  6. Kyle J. McKayMar 8, 2015
  7. Diego ViolaMar 8, 2015

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.