-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.txt
47 lines (26 loc) · 862 Bytes
/
github.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
## iniclaiza (se nao existe
git init
## seleciona branch
git branch <nome do branch>
## adiciona todos arquivos
git add .
## aplica o commit dos dados locais
git commit -m 'First commit'
## inclui pasta como repositorio local
fit remote add origin <remore repository URL>
## lista os enderecos
git remote -v
## faz o push do commit
git push origin <branch name>
## faz o push do commit adicionando as alteracoes
git commit -a -m 'First commit'
## push do commit com erro de historico:
"There isn’t anything to compare."
1) git merge origin/main --allow-unrelated-histories
2) git push -u origin master -f
## branch -> cria um branch
git branch novo_branch
git checkout novo_branch
git merge origin/main --allow-unrelated-histories
## checkout -> muda o branch de trabalho
git checkout master