desorden:versionado:git
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Próxima revisión | Revisión previa | ||
| desorden:versionado:git [2025/03/31 05:45] – created admin | desorden:versionado:git [2026/01/15 06:23] (actual) – [Conexion] admin | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| ====== GIT Notas ====== | ====== GIT Notas ====== | ||
| + | |||
| + | Para descargar el GIT oficial: | ||
| + | * [[https:// | ||
| + | |||
| + | La última versión que funciona con Windows 7 64bit, es GIT 2.46.2 [[https:// | ||
| + | |||
| + | Interesante página que muestra como se guarda el archivo en el sistema git | ||
| + | * [[https:// | ||
| Usar Git-Extensions porque tiene buen GUI [[http:// | Usar Git-Extensions porque tiene buen GUI [[http:// | ||
| Línea 5: | Línea 13: | ||
| Complementarlo con Git-ftp [[http:// | Complementarlo con Git-ftp [[http:// | ||
| - | {{youtube> | + | {{ youtube> |
| comandos bash | comandos bash | ||
| Línea 82: | Línea 90: | ||
| #Restaurar al ultimo commit | #Restaurar al ultimo commit | ||
| - | git checkout | + | git checkout <nombre del archivo> |
| + | |||
| + | #Restaurar (nuevo comando como checkout) | ||
| + | git switch main (main branch default) | ||
| + | git switch <nombre del archivo> | ||
| #Ver las diferencias con respecto al commit | #Ver las diferencias con respecto al commit | ||
| Línea 96: | Línea 109: | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | {{ youtube> | ||
| Manejo de versionados (brand, checkout): | Manejo de versionados (brand, checkout): | ||
| Línea 106: | Línea 121: | ||
| #Crear Branch | #Crear Branch | ||
| git branch <nombre del branch> | git branch <nombre del branch> | ||
| + | |||
| + | #1o: | ||
| + | git checkout -b <nuevo branch> | ||
| + | #2do: | ||
| + | git switch -c <nuevo branch> | ||
| #elegir branch | #elegir branch | ||
| Línea 190: | Línea 210: | ||
| [[http:// | [[http:// | ||
| + | |||
| + | |||
| + | ==== Conexion ==== | ||
| + | |||
| + | < | ||
| + | #Para listar los servidores remotos: | ||
| + | |||
| + | git remote -v | ||
| + | |||
| + | git push -u origin < | ||
| + | |||
| + | git remote a | ||
| + | |||
| + | # Configurar remote url | ||
| + | |||
| + | git remote set-url origin <url> | ||
| + | |||
| + | <url> | ||
| + | https://< | ||
| + | |||
| + | </ | ||
| + | |||
| + | * **git fetch:** Downloads new data and changes from the remote repository to your local machine, without integrating them into your current working branch. This is considered the " | ||
| + | * **git pull:** Performs a git fetch immediately followed by a git merge (or git rebase if configured) to integrate the remote changes into your current local branch. This can lead to merge conflicts if not used carefully. | ||
| + | * **git push:** Uploads your local commits to the remote repository, sharing your changes with others. | ||
| + | |||
desorden/versionado/git.1743399947.txt.gz · Última modificación: 2025/03/31 05:45 por admin
