2
respuestas

[Duda] No me deja agregar mi servidorlocal

neko@NEKO MINGW64 ~/Documents/Programacion/Logica de Programacion/Git-Github/repositorio (BARE:master) $ git init --bare Reinitialized existing Git repository in C:/Users/neko/Documents/Programacion/Logica de Programacion/Git-Github/repositorio/

neko@NEKO MINGW64 ~/Documents/Programacion/Logica de Programacion/Git-Github/repositorio (BARE:master) $ cd ..

neko@NEKO MINGW64 ~/Documents/Programacion/Logica de Programacion/Git-Github (master) $ cd bruno/

neko@NEKO MINGW64 ~/Documents/Programacion/Logica de Programacion/Git-Github/bruno (master) $ git remote

neko@NEKO MINGW64 ~/Documents/Programacion/Logica de Programacion/Git-Github/bruno (master) $ git remote add servidor C:/Users/neko/Documents/Programacion/Logica de Programacion/Git-Github/repositorio/ usage: git remote add []

-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

** como hago para solucionar ese error**

2 respuestas

A mi me paso algo similar y era por que el nombre de una de mis carpeta era demasiado largo y con espacios de por medio asi que git no me lo reconocía veo que una de tus carpetas tiene espacios también. Encontré que al cerrar el nombre de la carpeta con el nombre largo entre comillas lo reconocía como un solo string intenta hacerlo así.

Me está pasando lo mismo. En mi caso, no puedo cambiar el nombre y eliminar el espacio, ya que es mi nombre de usuario Windows y no me deja.

C:\Users\Klaus Yanez\Desktop\git>git remote add servidorlocal C:/Users/Klaus Yanez/Desktop/servidor/ usage: git remote add []

-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