You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Git is the open source distributed version control system that facilitates GitHub activities on your laptop or desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.
3
+
Git es el sistema de control de versiones distribuido de fuente abierta que facilita las actividades de GitHub en su computadora portátil o de escritorio.Esta hoja de referencia rápida resume las instrucciones de las líneas de comando de Git más comúnmente usadas.
4
4
5
-
## Install git
6
-
GitHub provides desktop clients that include a graphical user interface for the most common repository actions and an automatically updating command line edition of Git for advanced scenarios.
5
+
## Instalar Git
6
+
GitHub le ofrece a los clientes de computadoras de escritorio que incluye una interfaz gráfica de usuario para las acciones de repositorio más comunes y una edición de línea de comando de actualización automática de Git para escenarios avanzados.
7
7
8
-
### GitHub for Windows
8
+
### GitHub para Windows
9
9
http://windows.github.com
10
10
11
-
### GitHub for Mac
11
+
### GitHub para Mac
12
12
http://mac.github.com
13
13
14
-
Git distributions for Linux and POSIX systems are available on the official Git SCM web site.
14
+
Hay distribuciones de Git para sistemas Linux y POSIX en el sitio web oficial Git SCM.
15
15
16
-
### Git for all platforms
16
+
### Git para toda plataforma
17
17
http://git-scm.com
18
18
19
-
## Configure tooling
20
-
Configure user information for all local repositories
21
-
19
+
## Configurar herramientas
20
+
Configura la información del usuario para todos los respositorios locales
22
21
23
22
```$ git config --global user.name "[name]"```
24
23
25
-
Sets the name you want attached to your commit transactions
24
+
Establece el nombre que desea esté anexado a sus transacciones de commit
Enumera todos los archivos ignorados en este proyecto
146
145
147
-
## Save fragments
148
-
Shelve and restore incomplete changes
146
+
## Guardar fragmentos
147
+
Almacena y restaura cambios incompletos
149
148
150
149
151
150
```$ git stash```
152
151
153
-
Temporarily stores all modified tracked files
152
+
Almacena temporalmente todos los archivos tracked modificados
154
153
155
154
156
155
```$ git stash pop```
157
156
158
-
Restores the most recent stashed files
157
+
Restaura los archivos guardados más recientemente
159
158
160
159
161
160
```$ git stash list```
162
161
163
-
Lists all stashed changesets
162
+
Enumera todos los sets de cambios en guardado rápido
164
163
165
164
166
165
```$ git stash drop```
167
166
168
-
Discards the most recently stashed changeset
167
+
Elimina el set de cambios en guardado rápido más reciente
169
168
170
-
## Review history
171
-
Browse and inspect the evolution of project files
169
+
## Repasar historial
170
+
Navega e inspecciona la evolución de los archivos de proyecto
172
171
173
172
174
173
```$ git log```
175
174
176
-
Lists version history for the current branch
175
+
Enumera el historial de la versión para la rama actual
177
176
178
177
179
178
```$ git log --follow [file]```
180
179
181
-
Lists version history for the file, including renames
180
+
Enumera el historial de versión para el archivo, incluidos los cambios de nombre
182
181
183
182
184
183
```$ git diff [first-branch]...[second-branch]```
185
184
186
-
Shows content differences between two branches
185
+
Muestra las diferencias de contenido entre dos ramas
187
186
188
187
189
188
```$ git show [commit]```
190
189
191
-
Outputs metadata and content changes of the specified commit
190
+
Produce metadatos y cambios de contenido del commit especificado
192
191
193
-
## Redo commits
194
-
Erase mistakes and craft replacement history
192
+
## Rehacer commits
193
+
Borra errores y elabora historial de reemplazo
195
194
196
195
197
196
```$ git reset [commit]```
198
197
199
-
Undoes all commits after `[commit]`, preserving changes locally
200
-
198
+
Deshace todos los commits después de `[commit]`, preservando los cambios localmente
201
199
202
200
```$ git reset --hard [commit]```
203
201
204
-
Discards all history and changes back to the specified commit
202
+
Desecha todo el historial y regresa al commit especificado
205
203
206
-
## Synchronize changes
207
-
Register a repository bookmark and exchange version history
204
+
## Sincronizar cambios
205
+
Registrar un marcador de repositorio e intercambiar historial de versión
208
206
209
207
210
208
```$ git fetch [bookmark]```
211
209
212
-
Downloads all history from the repository bookmark
213
-
210
+
Descarga todo el historial del marcador del repositorio
214
211
215
212
```$ git merge [bookmark]/[branch]```
216
213
217
-
Combines bookmark’s branch into current local branch
214
+
Combina la rama del marcador con la rama local actual
218
215
219
216
220
217
```$ git push [alias] [branch]```
@@ -224,12 +221,12 @@ Uploads all local branch commits to GitHub
224
221
225
222
```$ git pull```
226
223
227
-
Downloads bookmark history and incorporates changes
224
+
Descarga el historial del marcador e incorpora cambios
228
225
229
226
---
230
227
231
228
## GitHub Training
232
-
Learn more about using GitHub and Git. Email the Training Team or visit our web site for learning event schedules and private class availability.
229
+
Obtenga más información sobre el uso de GitHub y Git.Envíe un e-mail al Equipo de Capacitación o visite nuestro sitio web para informarse sobre los horarios de eventos y la disponibilidad de clases privadas.
0 commit comments