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- # Comandos útiles de GIT
1+ ## Comandos útiles de GIT
22
331 . git init
442 . git add .
5- - git add (nombre fichero p.e index.html) - añade los cambios efectuados en este fichero
5+ - git add (nombre fichero p.e index.html) - \* añade los cambios efectuados en este fichero\*
66 - git add . or .git add --all - añade todos los cambios efectuados hasta el momento
773 . git reset .
884 . git commit -m "explicación de los cambios"
151511 . git push
161612 . git commit -am (junta git add . + git commit -m. Només en casos en seguiments continuos)
1717
18- # Cómo cambiar la URL remota en GIT
18+ ## Cómo cambiar la URL remota en GIT
1919
2020. git remote set-url origin https://github.org/repo.git - para poder hacer los push correctamente
2121
28285 .
29296 .
3030
31- # Formas de borrar
31+ ## Formas de borrar
32321 . git reset * (nombre de la extensión p.e. .xml) - para borar ficheros del stage o cualquier otra cosa
3333
34- # push
34+ ## push
3535.git push -f origin main - para forzar un push
3636
3737
You can’t perform that action at this time.
0 commit comments