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

Erro ao executar git remote add

Boa noite!

Ao tentar executar o git remote add do exercício estou obtendo um erro:

_@WB_HOME MINGW64 /c/Dev/Alura/GIT/Project
$ git remote add origin https://github.com/wbarbosa0/curso-git.git
fatal: Not a git repository (or any of the parent directories): .git

_@WB_HOME MINGW64 /c/Dev/Alura/GIT/Project
$ git remote add origin https://github.com/jcfonsecagit/curso-git.git
fatal: Not a git repository (or any of the parent directories): .git

_@WB_HOME MINGW64 /c/Dev/Alura/GIT/Project
$

Notar que tentei até executar com o projeto do instrutor obtendo a mesma mensagem.

Alguma ideia do que pode estar acontecendo? O projeto foi criado no GitHub e está vazio.

TIA,

WB::

1 resposta
solução!

Olá, Use git init antes de tudo para criar um repositório git e assim irá poder executar os comandos:

git init
git remote add origin https://github.com/wbarbosa0/curso-git.git
git remote add origin https://github.com/jcfonsecagit/curso-git.git

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