File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ https://docs.github.com/es/github/writing-on-github/getting-started-with-writing-and-formatting-on-github
12## Comando iniciales
3+
24* git config --global user.name _ (nombre de quien va a hacer el código)_
35* git config --global user.email _ (email de quien va a hacer el código)_
6+
47## Comandos de GIT
58``` ruby
691 . git init - \* crea una carpeta .git y una rama main/ master\*
33362 . git log --oneline --decorate --all --graph - \* nos enseña todas las relaciones del fichero y en que situación se encuentran\*
34373 . status - \* Indica en rojo los archivos con cambios\*
3538 - git status -s - \* otra forma de enseñarnos el status. En lugar de colorear nos pone letras de las acciones realizadas\*
36- 4 .
39+ 4 . git log -g - \* aparecen commits perdidos \*
37405 .
38416 .
3942
4043## Formas de borrar
41441 . git reset * _ nombre de la extensión p.e .xml_ - \* para borrar ficheros del stage o cualquier otra cosa\*
42452 . git reset .
46+ 3 . git gc - \* garbage collector. recolector de basura. Para borrar definitivamente no tiene que haber nada en branch, tag y reflog\*
4347
4448## push
4549* git push -f origin main - para forzar un push
You can’t perform that action at this time.
0 commit comments