Creating central repository in Git from existing local repository (in Windows)

git, repository

Solution

It sounds like your paths aren't valid. Delete the bare repository and try this from your local repository working folder:

git init --bare //UNC/Path/to/Central.git
git remote add Central //UNC/Path/to/Central.git
git push --all Central

Problem

I've looked around StackOverflow and other places (including Git documentation) and just cannot get this to work. Here's what i've done: To setup central repository (on //SomeUNC); ``` git init --bare Central.git ``` This creates a //SomeUNC/Central.git folder. Now, in local repository, i try: ``` git remote add Central //SomeUNC/Central.git (this is ok) git push -all Central ``` This gives the error: fatal: 'Central' does not appear to be a git repository fatal: The remote end hung up unexpectedly I'm sure I'm missing something simple. Thank for any help!

Original source