31.03.2024 Views

Controlando_verso_es_com_Git_e_GitHub_Ca

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CasadoCódigo

Capítulo2. Tourprático

Rastreandooarquivo

Maseoarquivofilmes.txt? Seráquejáestáversionado?

PodemosverasituaçãodosarquivosnorepositórioGitcomocomando:

git status

Asaídadeveráseralgocomo:

# On branch master

#

# Initial commit

#

# Untracked files:

# (use "git add <file>..." to include in what will be

committed)

#

# filmes.txt

nothing added to commit but untracked files present (use

"git add" to track)

Observeamensagemanterior:elaindicaqueoarquivo filmes.txt

aindanãofoirastreadopeloGit.

Paraqueoarquivosejarastreado,devemosexecutaroseguintecomando:

git add filmes.txt

Agora, se executarmos git status novamente, teremos a seguinte

saída:

# On branch master

#

# Initial commit

#

# Changes to be committed:

# (use "git rm --cached <file>..." to unstage)

#

# new file: filmes.txt

#

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!