31.03.2024 Views

Controlando_verso_es_com_Git_e_GitHub_Ca

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CasadoCódigo

Capítulo3. Trabalhandocomrepositóriolocal

<!-- início do arquivo ... -->

<head>

<!-- tags meta, link e title ... -->

<script src="principal.js"></script>

</head>

<body>

<!-- tag h1 ... -->

<h2 id="mensagem"></h2>

<!-- restante do arquivo ... -->

Aoexecutarmosocomando git status,teremosasaída:

# 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

#

# Untracked files:

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

committed)

#

# principal.js

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

"git commit -a")

Observequeémostradaamodificaçãonoarquivo index.htmletambémonovoarquivoprincipal.js.

Vamosexecutarocomandopararastrearecomitarosarquivosdeuma

vezsó:

git commit -am "Script de troca de banner"

Nasaída,teremos:

[master 9222999] Script de troca de banner

1 file changed, 2 insertions(+)

33

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

Saved successfully!

Ooh no, something went wrong!