-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResumen.txt
63 lines (36 loc) · 1.82 KB
/
Resumen.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
CONFIG | NOMBRE → git config --global user.name "Your Name"
| E-MAIL → git config --global user.email "[email protected]"
| EDITOR → git config --global core.editor vi
| CONFIG → git config --list
KEYGEN | CREAR CLAVE SSH → ssh-keygen
CLONE | CLONAR → git clone https://github.com/user/repository
<carpeta>
Cambia el nombre de la carpeta
INIT | INICIALIZAR GIT → git init
STATUS | ESTADO → git status
ADD | AÑADIR ARCHIVO → git add <nombrefichero>
COMMIT | COMITS → git commit -m "comentario explicativo"
CHECKOUT | MULTIPLES OPERACIONES → git checkout
| <nombrefichero>
| descartar fichero
| <nombrerama>
| cambia la cabeza a la rama <nombrerama>
| -b <nombrerama>
| crea y cambia (la cabeza) a la rama <nombrerama>
RESET | DESCARTAR ARCHIVO LISTO → git reset HEAD <nombrefichero>
BRANCH | RAMAS → git branch
| <nombrerama>
| crea una rama con el nombre <nombrerama>
| -d <nombrerama>
| borra la rama <nombrerama>
MERGE | FUNDIR RAMA EN CABEZA → git merge <nombrerama>
PUSH | SUBIR COMMITS → git push
FETCH | BAJAR COMMITS → git fetch
PULL | BAJAR Y MERGE → git pull
LOG | MOSTRAR LOS COMMITS → git log
| -<numero>
| muestra <numero> lineas del log (commits)
| -p
| muestra los cambios por commit
| --oneline
| muestra el hash resumido y el mensaje de los commits