Olá, tudo bem? Porque o GIT não estaria adicionando o repositório remoto nesse caso?
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor
$ mkdir servidor
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor
$ ls
08-git-e-github/ servidor/
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor
$ cd servidor/
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/servidor
$ git init --bare
Initialized empty Git repository in G:/My Drive/Courses/Alura/08-git-e-github-servidor/servidor/
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/servidor (BARE:master)
$ cd ../
config description HEAD hooks/ info/ objects/ refs/
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/servidor (BARE:master)
$ cd ../08-git-e-github/
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/08-git-e-github (master)
$ git status
On branch master
nothing to commit, working tree clean
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/08-git-e-github (master)
$ git remote
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/08-git-e-github (master)
$ git remote add local G:/My Drive/Courses/Alura/08-git-e-github-servidor/servidor/
usage: git remote add [<options>] <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
guir3@DESKTOP-4GPJMH2 MINGW64 /g/My Drive/Courses/Alura/08-git-e-github-servidor/08-git-e-github (master)
$
Tem algo a ver com o fato que não estou usando o disco C: como local de meus arquivos? Uso o Google Drive File Stream e os arquivos estão alocados em meu drive pela minha máquina. Fiz o teste criando o servidor em uma pasta no Desktop e deu certo, mas queria saber o porque de não conseguir fazer como tentei acima.