[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using git locally



This comes from David Karl Oliver who is no longer among the living.
Marine: Muscles are required intelligence not expected.  His cousin
joined the Corps too and David Oliver and me worked as civilians for the
Navy in the same office.

On Fri, 17 May 2019, Eduardo M KALINOWSKI wrote:

> Date: Fri, 17 May 2019 10:59:36
> From: Eduardo M KALINOWSKI <eduardo@kalinowski.com.br>
> To: debian-user@lists.debian.org
> Subject: Re: using git locally
> Resent-Date: Fri, 17 May 2019 14:59:53 +0000 (UTC)
> Resent-From: debian-user@lists.debian.org
>
> On 17/05/2019 11:31, mick crane wrote:
> > well that seems to work
> > "git clone myserver:/path_to_git_repository"
> > whereas
> > "git remote add origin myserver:/path_to_git_repository"
> > fatal: not a git repository (or any of the parent directories): .git
> >
> > probably I can worry about that later at least I know now I can talk
> > to it.
>
> That's because git remote add is meant to add a remote to an existing
> git (local) repository. You're probably running it on an empty
> directory, so it complains (correctly) that you're not in a repository.
>
> If you really must, do "git init ." and then "git remote add". But just
> use clone to create the local repository based on another repository.
>
>

-- 


Reply to: