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

O Index não está commitando

Olá, pessoal. O Index não está commitando e aparece a mensagem abaixo. O que fazer?


Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ git remote
local

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ git pull local master
From C:/git_e_github/servidor
 * branch            master     -> FETCH_HEAD
Already up to date.

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ ls
Index.html

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ git status
On branch master
Your branch is up to date with 'local/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   Index.html

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

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ git index.html
git: 'index.html' is not a git command. See 'git --help'.

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$ git commit -m"Renomeando curso de Integração Contínua"
On branch master
Your branch is up to date with 'local/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   Index.html

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

Tais e Alexandre@LAPTOP-NIIP1EFS MINGW64 /c/git_e_github/ana/projeto (master)
$
2 respostas

você tem que escrever git add index.html antes de commitar irmão... ou.. vc escreve git add . e depois

git commit -m "(seu texto aqui)"

espero ter ajudado

solução!

Marcelo, meu irmão, valeu!! Deu certo com o git add . . Fazendo com git add index.html não tava indo. Agora foi. Valeu! Ajudou demais!!

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