Skip to content

Commit eaf53b8

Browse files
authored
Update README.md
1 parent 8076592 commit eaf53b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
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
69
1. git init - \*crea una carpeta .git y una rama main/master\*
@@ -33,13 +36,14 @@
3336
2. git log --oneline --decorate --all --graph - \*nos enseña todas las relaciones del fichero y en que situación se encuentran\*
3437
3. 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\*
3740
5.
3841
6.
3942

4043
## Formas de borrar
4144
1. git reset *_nombre de la extensión p.e .xml_ - \*para borrar ficheros del stage o cualquier otra cosa\*
4245
2. 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

0 commit comments

Comments
 (0)