Skip to content

Commit 3cfc890

Browse files
committed
aula git
1 parent 722e584 commit 3cfc890

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

comandosBasicosGit.txt

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Criar uma pasta:
2+
mkdir nome_da_pasta
3+
4+
// Entrar na pasta:
5+
cd nome_da_pasta
6+
7+
// Sair da pasta:
8+
cd ..
9+
10+
// Listagem simples:
11+
ls
12+
13+
// Listagem completa:
14+
ls -la
15+
16+
// Remover arquivo
17+
rm nome_arquivo.txt
18+
19+
// Remover pasta
20+
rm -rf nome_da_pasta
21+
22+
// Clonar um repositório já existente
23+
git clone https://github.com/repositorio
24+
25+
// Verificar estado dos arquivos no repositório
26+
git status
27+
28+
// Adicionar um arquivo no stage
29+
git add nome_do_arquivo
30+
31+
// Adicionar todos os arquivos no stage
32+
git add .
33+
34+
// Informar uma mensagem ao commitar o arquivo
35+
git commit –m “mensagem”
36+
37+
// Enviar arquivos para o repositório
38+
git push
39+
40+
// Atualizar arquivos no repositório local a partir do repositório remoto
41+
git pull
42+
43+

0 commit comments

Comments
 (0)