-
Notifications
You must be signed in to change notification settings - Fork 69
/
worflow-contrib.sh
78 lines (67 loc) · 1.42 KB
/
worflow-contrib.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#=======================================================================
# Worflow para trabalho colaborativo
#=======================================================================
#-----------------------------------------------------------------------
# Pessoas colaborando sem criar branches
# Cria novo repositório no PET
# Verifica os acessos de todos
# Clona para o Mayer
# Clona para o Zissou
# MAYER
# Modifica arquivo
git status
git commit -am
git push origin master
cat README
git log --oneline
# ZISSOU
git fetch origin master
git diff master origin/master
git merge origin/master
cat README
git log --oneline
# Modifica arquivo
git commit -am
git push origin master
cat README
git log --oneline
# MAYER
git pull origin master
git status
cat README
git log --oneline
# Modifica arquivo
git commit -am
git push origin master
cat README
git log --oneline
# ZISSOU
# Nao faz o pull
# Altera o arquivo
git commit -am
cat README
git log --oneline
git push origin master
# CONFLITO
git pull origin master
# Aruma conflito
git commit -am
git push origin master
# MAYER
# Faz o pull
git pull origin master
#-----------------------------------------------------------------------
# Criando branches
# ZISSOU
git branch teste
git checkout teste
# Modifica README
git commit -am
# Cria script.R
git add .
git commit -m
git push origin teste
# Vai para o github e cria pull request
# MAYER
# Faz o merge, comenta, etc
git pull origin master