Você está na página 1de 5

O ciclo básico do Git | alura https://cursos.alura.com.

br/course/git/section/2/explanation

mkdir curso-git
cd curso-git

git init

Initialized empty Git repository in /diretorio/repostorio


/do/git

index.html

<html>
<head>
</head>
<body>
</body>
</html>

git ls-files

git status

1 de 5 16/05/2016 21:22
O ciclo básico do Git | alura https://cursos.alura.com.br/course/git/section/2/explanation

git status

# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# index.html

git add

git add index.html

git status

# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: index.html
#

git blame

git config user.name "João Carlos Fonseca"


git config user.email "jcfonsecagit@gmail.com"

2 de 5 16/05/2016 21:22
O ciclo básico do Git | alura https://cursos.alura.com.br/course/git/section/2/explanation

git config --global user.name "João Carlos Fonseca"


git config --global user.email "jcfonsecagit@gmail.com"

git commit -m "Início do projeto"

git status

# On branch master
nothing to commit (working directory clean)

<html>
<head>
</head>
<body>
<h1>Git</h1>
<h2>Trabalhando em Equipe com Controle e Segurança</h2>

<p>Um curso que explora os benefícios de utilizar o Git como ferramenta de controle

<h3>Principais benefícios:</h3>
<ul>
<li>Funciona de maneira distribuída</li>
<li>Permite a edição concorrente de arquivos do projeto</li>
<li>Não depende de uma conexão ativa com um servidor</li>
</ul>
</body>
</html>

3 de 5 16/05/2016 21:22
O ciclo básico do Git | alura https://cursos.alura.com.br/course/git/section/2/explanation

</body>
</html>

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")

git add

# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: index.html
#

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


index.html"

4 de 5 16/05/2016 21:22
O ciclo básico do Git | alura https://cursos.alura.com.br/course/git/section/2/explanation

5 de 5 16/05/2016 21:22

Você também pode gostar