1
resposta

Parte final do projeto - Alteração/Commit

Ao executar o comando para carregar as atualizações, o GIT não realizou o procedimento, informando anteriormente que não havia nada para "commitar":

Giann Rossi@DESKTOP-4S5S2LK MINGW64 ~/curso-git (master)
$ git status
On branch master
nothing to commit, working tree clean

Giann Rossi@DESKTOP-4S5S2LK MINGW64 ~/curso-git (master)
$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   index.html

no changes added to commit (use "git add" and/or "git commit -a")

Giann Rossi@DESKTOP-4S5S2LK MINGW64 ~/curso-git (master)
$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   index.html

no changes added to commit (use "git add" and/or "git commit -a")

Giann Rossi@DESKTOP-4S5S2LK MINGW64 ~/curso-git (master)
$ git commit -m "Conteúdo da página index.html"
On branch master
Changes not staged for commit:
        modified:   index.html

no changes added to commit

Giann Rossi@DESKTOP-4S5S2LK MINGW64 ~/curso-git (master)
$

O que fiz de errado?

1 resposta

Oi Giann! Faltou você fazer um

git add .

antes de dar o

git commit -m "Conteúdo da página index.html

abraços!

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