Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Como usar o git clone?

Eu estou tentando clonar um rep local, mas fica dando essas informações, e mesmo com o git clone -l ele não funciona

$ git clone --local /C:/Users/gabyd/OneDrive/Área de Trabalho/git e github/servidor fatal: Too many arguments.

usage: git clone [] [--] [

]
-v, --verbose         be more verbose
-q, --quiet           be more quiet
--progress            force progress reporting
--reject-shallow      don't clone shallow repository
-n, --no-checkout     don't create a checkout
--bare                create a bare repository
--mirror              create a mirror repository (implies bare)
-l, --local           to clone from a local repository
--no-hardlinks        don't use local hardlinks, always copy
-s, --shared          setup as shared repository
--recurse-submodules[=<pathspec>]
                      initialize submodules in the clone
--recursive ...       alias of --recurse-submodules
-j, --jobs <n>        number of submodules cloned in parallel
--template <template-directory>
                      directory from which templates will be used
--reference <repo>    reference repository
--reference-if-able <repo>
                      reference repository
--dissociate          use --reference only while cloning
-o, --origin <name>   use <name> instead of 'origin' to track upstream
-b, --branch <branch>
                      checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
                      path to git-upload-pack on the remote
--depth <depth>       create a shallow clone of that depth
--shallow-since <time>
                      create a shallow clone since a specific time
--shallow-exclude <revision>
                      deepen history of shallow clone, excluding rev
--single-branch       clone only one branch, HEAD or --branch
--no-tags             don't clone any tags, and make later fetches not to follow them
--shallow-submodules  any cloned submodules will be shallow
--separate-git-dir <gitdir>
                      separate git dir from working tree
-c, --config <key=value>
                      set config inside the new repository
--server-option <server-specific>
                      option to transmit
-4, --ipv4            use IPv4 addresses only
-6, --ipv6            use IPv6 addresses only
--filter <args>       object filtering
--remote-submodules   any cloned submodules will use their remote-tracking branch
--sparse              initialize sparse-checkout file to include only files at root
1 resposta
solução!

Olá Gabryel, tudo bem?

Como o endereço do seu repositório tem espaços (git e github), você deve colocá-lo entre aspas para o Git reconhecer como um endereço, caso contrário ele retorna mensagem de erro por interpretar como outros comandos ou argumentos. Tente fazer da seguinte maneira:

 git clone --local "C:/Users/gabyd/OneDrive/Área de Trabalho/git e github/servidor"

Espero que dê certo e qualquer coisa, estamos à disposição!

Bons estudos :)

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software