Solucionado (ver solução)
Solucionado
(ver solução)
7
respostas

[Dúvida] Erro ao inserir "git add"

hint: Maybe you wanted to say 'git add .'?
hint: Turn this message off by running
hint: "git config advice.addEmptyPathspec false"
7 respostas

Oi!

Provavelmente você executou o comando git add mas não especificou qual arquivo adicionar. Para adiconar todos, precisa do . (ponto) apoś o add:

git add .
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> git ignit
git: 'ignit' is not a git command. See 'git --help'.

The most similar command is
        init
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> git add.
git: 'add.' is not a git command. See 'git --help'.

The most similar command is
        add
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> 
solução!

Oi!

O primeiro comando você digitou errado: git ignit o correto é: git init

No comando git add precisa de um espaço entre a palavra add e o ponto:

git add .
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> git init
Reinitialized existing Git repository in C:/Users/keell/OneDrive/Área de Trabalho/3386-git-github-projeto_inicial/3386-git-github-projeto_inicial/.git/
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> git add .
warning: in the working copy of 'app.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'img/JS Game.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'img/JS Game_files/app.js', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'img/JS Game_files/style.css', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'style.css', LF will be replaced by CRLF the next time Git touches it
PS C:\Users\keell\OneDrive\Área de Trabalho\3386-git-github-projeto_inicial\3386-git-github-projeto_inicial> 

Perfeito!

Bons estudos!

Boa tarde estou com esse mesmo problema qd coloco git add . + enter não acontece nada , volta a repetir a mesma frase da primeira linha. o q será q ta errado

Manda um print aqui Patricia.

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