Firstly, this is a very strange error message.
Secondly, you need to do the following:
eg.
git clone --bare my-source my-source.git
You can then copy the resulting empty repository to a remote location and clone it.
For completeness of another way to do this:
Create an empty empty repository:
mkdir my-source.git
cd my-source.git
git init --bare
Go to your source directory and make it git repo (non-bare):
cd / path / to / my-source
git init
Add a bare repo as a remote source:
git remote incremental source / path / to / my -source.git
And press the contents of your repo on the remote control:
git push --all
If running git init (without --bare ) inside the source directory gives this error, you have another problem.
source share