@@ -14,236 +14,236 @@ Com instaladores Git específicos para cada plataforma, GitHub também disponibi
14
14
15
15
## CONFIGURAÇÃO
16
16
17
- Configuring user information used across all local repositories .
17
+ Configurando informação do usuário em todos os repositórios locais .
18
18
19
19
```
20
20
git config --global user.name "[firstname lastname]"
21
21
```
22
- set a name that is identifiable for credit when review vesion history .
22
+ atribui um nome que é identificável como credencial durante a revisão do histórico .
23
23
24
24
```
25
25
git config --global user.email "[valid-email]"
26
26
```
27
- set an email address that will be associated with each history marker .
27
+ atribui um endereço de email que será associado a cada marcador de histórico .
28
28
29
29
```
30
30
git config --global color.ui auto
31
31
```
32
- set automatic command line coloring for Git for easy reviewing .
32
+ configura a coloração do prompt de comando do Git para revisão facilitada .
33
33
34
34
35
35
## CONFIGURAÇÃO & INICIALIZAÇÃO
36
36
37
- Configuring user information, initializing and cloning repositories .
37
+ Configurando informação de usuário, inicialização e clonando repositórios .
38
38
39
39
```
40
40
git init
41
41
```
42
- initialize an existing directory as a Git repository .
42
+ Inicializa um diretório existente como um reposório Git .
43
43
44
44
```
45
45
git clone [url]
46
46
```
47
- retrieve an entire repository from a hosted location via URL
47
+ Copia um repositório inteiro de um local hospedado via URL.
48
48
49
49
50
50
## PREPARAÇÃO (STAGE) & PRÉVIA (SNAPSHOT)
51
51
52
- Working with snapshots and the Git staging area
52
+ Trabalhando com prévias e com a área de preparação Git
53
53
54
54
```
55
55
git status
56
56
```
57
- show modified files in working directory, stage for your next commit.
57
+ exibe arquivos modificados no diretório de trabalho, preparação para seu próximo commit.
58
58
59
59
```
60
60
git add [file]
61
61
```
62
- add a file as it looks now to your next commit (stage ).
62
+ adiciona um arquivo como está agora para seu próximo commit (preparação ).
63
63
64
64
```
65
65
git reset [file]
66
66
```
67
- unstage a file while retaining the changes in working directory .
67
+ desprepara um arquivo enquanto mantém as mudanças no diretório de trabalho .
68
68
69
69
```
70
70
git diff
71
71
```
72
- diff of what is changed but not staged .
72
+ diferenças do que foi modificado mas não está preparado .
73
73
74
74
```
75
75
git diff --staged
76
76
```
77
- diff of what is staged but not yet committed .
77
+ diferenças do que foi preparado mas não recebeu commit anda .
78
78
79
79
```
80
80
git commit -m "[descriptive message]"
81
81
```
82
- commit your staged content as a new commit snapshot .
82
+ aplica o conteúdo preparado como uma nova prévia commit .
83
83
84
84
85
85
## RAMIFICAÇÃO (BRANCH) & INTEGRAÇÃO (MERGE)
86
86
87
- Isolating work in branches, changing context, and integrating changes .
87
+ Isolando o trabalho em ramos, alterando contexto, e integrando mudanças .
88
88
89
89
```
90
90
git branch
91
91
```
92
- list your branches. a * will appear next to the currently active branch .
92
+ lista seus ramos ( branches). um * aparecerá próximo ao ramo atualmente ativo .
93
93
94
94
```
95
95
git branch [branch-name]
96
96
```
97
- create a new branch at the current commit.
97
+ cria um novo ramo no commit atual
98
98
99
99
```
100
100
git checkout
101
101
```
102
- switch to another branch and check it out into your working directory.
102
+ troca para outro ramo ( branch) e sai para o diretório de trabalho atual
103
103
104
104
```
105
105
git merge [branch]
106
106
```
107
- merge the specified branch's history into the current one .
107
+ merge o ramo histórico do especificado ao atual .
108
108
109
109
```
110
110
git log
111
111
```
112
- show all commits in the current branch's history .
112
+ exibe todos os commits no histórico do ramo atual .
113
113
114
114
115
115
## INSPEÇÃO & COMPARAÇÃO
116
116
117
- Examining logs, diffs and object information .
117
+ Examinando logs, diferenças and informação de objetos .
118
118
119
119
```
120
120
git log
121
121
```
122
- show the commit history for the currently active branch .
122
+ exibe todos os commits no histórico do ramo atual .
123
123
124
124
```
125
125
git log branchB..branchA
126
126
```
127
- show the commits on branchA that are not on branchB.
127
+ exibe os commits no branchA que não estão no branchB
128
128
129
129
```
130
130
git log --follow [file]
131
131
```
132
- show the commits that changed file, even across renames .
132
+ exibe os commits que alteraram file, mesmo entre renomeações .
133
133
134
134
```
135
135
git diff branchB...branchA
136
136
```
137
- show the diff of what is in branchA that is not in branchB.
137
+ exibe as diferenças do que está em branchA mas não em branchB.
138
138
139
139
```
140
140
git show [SHA]
141
141
```
142
- show any object in Git in human-readable format .
142
+ exibe qualquer objeto no Git em formato legível .
143
143
144
144
145
- ## RATREANDO MUDANÇAS DE CAMINHO
145
+ ## RASTREANDO MUDANÇAS DE CAMINHO
146
146
147
- Versioning file removes and path changes .
147
+ Versionando remoções e movimentações de arquivo .
148
148
149
149
```
150
150
git rm [file]
151
151
```
152
- delete the file from project and stage the removal for commit.
152
+ deleta o arquivo do projeto e prepara a remoção para o commit.
153
153
154
154
```
155
155
git mv [existing-path] [new-path]
156
156
```
157
- change an existing file path and stage the move .
157
+ altera um caminho de arquivo existente e prepara ( stage) a movimentação .
158
158
159
159
```
160
160
git log --stat -M
161
161
```
162
- show all commit logs with indications of any paths that moved .
162
+ exibe todos os logs de commits com indicações de caminhos que foram movidos .
163
163
164
164
165
165
## IGNORANDO PADRÕES
166
166
167
- Preventing unintentional staging or commiting of files
167
+ Prevenindo preparação ou commit de arquivos não intencionais.
168
168
169
169
```
170
170
logs/
171
171
*.notes
172
172
pattern*/
173
173
```
174
- save a file with desired patterns as .gitignore with either direct string matches or wildcard globs .
174
+ salve um arquivo com os padrões desejados como .gitignore com entradas de combinação diretas ou indiretas .
175
175
176
176
```
177
177
git config --global core.excludesfile [file]
178
178
```
179
- system wide ignore pattern for all local repositories .
179
+ padrões a serem ignorados por todos os repositórios locais .
180
180
181
181
182
182
## COMPARTILHAMENTO E ATUALIZAÇÃO
183
183
184
- Retrieving updates from another repository and updating local repos .
184
+ Recuperando atualizações de outro repositório e atualizando repositórios locais .
185
185
186
186
```
187
187
git remote add [alias] [url]
188
188
```
189
- add a git URL as an alias.
189
+ adiciona um URL git como um alias (pseudônimo) .
190
190
191
191
```
192
192
git fetch [alias]
193
193
```
194
- fetch down all the branches from that Git remote .
194
+ busca todos os ramos ( branches) do Git remoto .
195
195
196
196
```
197
197
git merge [alias]/[branch]
198
198
```
199
- merge a remote branch into your current branch to bring it up to date .
199
+ merge um ramo remoto ao ramo atual para atualizá-lo .
200
200
201
201
```
202
202
git push [alias] [branch]
203
203
```
204
- transmit local branch commits to the remote repository branch .
204
+ transmite commits do ramo local para o ramo do repositório remoto .
205
205
206
206
```
207
207
git pull
208
208
```
209
- fetch and merge any commits from the tracking remote branch .
209
+ busca e merge qualquer commit do ramo remoto rastreado .
210
210
211
211
212
212
## REESCREVENDO HISTÓRICO
213
213
214
- Rewriting branches, updating commits and clearing history
214
+ Reescrevendo ramos, atualizando commits e limpando o histórico
215
215
216
216
```
217
217
git rebase [branch]
218
218
```
219
- apply any commits of current branch ahead of specified one .
219
+ aplica quaisquer commits do ramo atual que esteja à frente do especificado .
220
220
221
221
```
222
222
git reset --hard [commit]
223
223
```
224
- clear staging area, rewrite working tree from specified commit.
224
+ limpa a area de preparação, reescreve a árvore de trabalho a partir do commit especificado .
225
225
226
226
227
227
## COMMITS TEMPORÁRIOS
228
228
229
- Temporarily store modified, tracked files, in toder to change branches.
229
+ Armazenando temporariamente arquivos modificados, rastreados com o objetivo de alterar ramos ( branches) .
230
230
231
231
```
232
232
git stash
233
233
```
234
- save modified and staged changes .
234
+ salva modificações e preparações .
235
235
236
236
```
237
237
git stash list
238
238
```
239
- list stack-order of stashed file changes .
239
+ lista em ordem de pilha das mudanças acumuladas no stash .
240
240
241
241
```
242
242
git stash pop
243
243
```
244
- write working from top of stack .
244
+ escreve o trabalho a partir do topo da pilha stash .
245
245
246
246
```
247
247
git stash drop
248
248
```
249
- discard the changes from top of stash stack .
249
+ discarta as mudanças a partir do top da pilha stash .
0 commit comments