1
resposta

Não sei como prosseguir...

Boa tarde a todos. Estava dando tudo certo na aula para mim, até que ao lançar o comando "git commit -m projeto inicial" apareceu esse erro aqui:

Committer: Clara Carvalho ccarvalho@f9c.com.br Your name and email address were configured automatically basedon your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly. Run thefollowing command and follow the instructions in your editor to edit your configuration file:

git config --global --edit

After doing this, you may fix the identity used for this commit with:

git commit --amend --reset-author

10 files changed, 329 insertions(+) create mode 100644 app.js create mode 100644 index.html create mode 100644 js-game-files/JS Game.html create mode 100644 js-game-files/Ruido.png create mode 100644 js-game-files/app.js create mode 100644 js-game-files/bg.png create mode 100644 js-game-files/code.png create mode 100644 js-game-files/ia.png create mode 100644 js-game-files/style.css create mode 100644 style.css PS C:\Users\ccarvalho\Desktop\numero-secreto>

Eu joguei no Google tradutor para tentar entender, e depois lancei esse comando aqui (que foi indicado na mensagem anterior): git config --global --edit

Depois disso eu não entendi exatamente o que apareceu no terminal, mas acho que ele queria que eu alterasse meu nome ou email, e eu não quero fazer isso, então me desesperei e fechei o vscode para tentar recomeçar esse processo.

Porém agora, quando eu tento adicionar os arquivos com o "git add ." não acontece nada, e se eu peço um status me aparece esta mensagem aqui: On branch master nothing to commit, working tree clean

Se alguém puder me ajudar, ou pelo menos me explicar o que houve, eu agradeceria muito.

1 resposta

Oi!

Deu essa mensagem inicial porque você precisa se identificar para o git primeiramente:

git config --global user.name "SEU NOME AQUI"
git config --global user.email "SEU EMAIL AQUI"

Depois disso é só prosseguir normalmente.