Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] How to clone an empty remote repo or push without cloning before?

On Wed, Dec 29, 2010 at 10:19, Mark Sofie <mark.sofie@xxxxxxxxx> wrote:
>>Instead what you want to do is use git init bare:
>
>>
>>  mkdir my-project.git
>>  cd my-project.git
>>  git init --bare
>
> Thanks!!! It works.
> I knew I was missing some understanding of git.
>
> (one hint for other newbies: use "git --bare init", not "git init --bare". at
> least my git tool refuses to work with the second command)

Yes, "git --bare init" is the older form of "git init --bare".  The
--bare flag was added to init in Git 1.5.6.  Which is pretty old.  How
old is your Git?

-- 
Shawn.


Back to the top