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ítulo3. Trabalhandocomrepositóriolocal

ObservequeoGitagorapassouarastrearoarquivoindex.htmleestá

prontoparagravaressearquivonorepositório(Changestobecommitted).

Rastreandováriosarquivos

Vamos dizer que criamos um arquivo estilos.css no diretório

moveis,comoseguinteconteúdo:

h1 {

font-family: sans-serif;

}

li {

font-family: monospace;

}

Também criamos um subdiretório imagens comumarquivo

logo.png,comumaimagemsemelhantea:

Seexecutarmos git status,teremos:

# On branch master

#

# Initial commit

#

# Changes to be committed:

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

#

# new file: index.html

#

# Untracked files:

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

committed)

#

# estilos.css

# imagens/

Observequeoarquivoestilos.csseodiretório imagensaindanão

estãosendorastreados(Untrackedfiles).

Sequisermosrastreartodosessesarquivos,seráqueteremosqueexecutar

git addumporum?

23

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

Saved successfully!

Ooh no, something went wrong!