1
respuesta

Problema y Solucion con servidor remoto Git

Problema y Solucion!!

Hola Amigos, estoy tratando de crear un servidor remoto tal cual aparaece en el video siguiendo todo, pero no me aparece creado, solo me aparece otros textos que no se que sigue.

1 Aqui obtengo el camino del repositorio @DESKTOP-019HV9O MINGW64 /d/Desarrollo Oracle/Git-Github/servidor $ git init --bare Initialized empty Git repository in D:/Desarrollo Oracle/Git-Github/servidor/

2 Lo trato de agregar tal cual: git remote add servidorlocal D:/Desarrollo Oracle/Git-Github/servidor/

y aparece esto, mostrando otras opciones:

@DESKTOP-019HV9O MINGW64 /d/Desarrollo Oracle/Git-Github/prueba (master) $ git remote add servidorlocal D:/Desarrollo Oracle/Git-Github/servidor/ usage: git remote add [ option s] name> url>

-f, --fetch           fetch the remote branches
--tags                import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --track  branch   branch(es) to track
-m, --master  branch
                      master branch
--mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from

Me podrian ayudar por favor cual seria el error. gracias

SOLUCION: Agregar un " - " si tienes un espacio entre el nombre de ruta. ejemplo: Desarrollo-Oracle

1 respuesta

Hola, como la ruta tiene espacios en blanco, git a veces no los maneja bien. Pon entre comillas dobles ("") la ruta a la carpeta del servidor. Con eso debería funcionar.

Saludos,