-
Notifications
You must be signed in to change notification settings - Fork 0
/
git.txt
50 lines (35 loc) · 913 Bytes
/
git.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
GIT Uploads
Entrar no CMD
Entrar na pasta:
cd (caminho da pasta)
Adicionar os arquivos para o repositório:
git add .
Comentários para o servidor alteração:
git commit -m "comentário"
Fazer envio para o servidor:
git push
GIT Download
git clone "caminho"
git pull
CRIAR SITE NO GIT
Create a new repository
git clone https://dominio/andre/teste.git
cd teste
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
Push an existing folder
cd existing_folder
git init --initial-branch=main
git remote add origin https://dominio/andre/teste.git
git add .
git commit -m "Initial commit"
git push -u origin main
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://dominio/teste/teste.git
git push -u origin --all
git push -u origin --tags