Herramientas de usuario

Herramientas del sitio


desorden:versionado:git

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
desorden:versionado:git [2025/04/20 04:06] admindesorden:versionado:git [2026/01/15 06:23] (actual) – [Conexion] admin
Línea 5: Línea 5:
  
 La última versión que funciona con Windows 7 64bit, es GIT 2.46.2 [[https://www.filepuma.com/download/git_for_windows_64bit_2.46.2-41605/|Descargar una versión en filepuma.com]] La última versión que funciona con Windows 7 64bit, es GIT 2.46.2 [[https://www.filepuma.com/download/git_for_windows_64bit_2.46.2-41605/|Descargar una versión en filepuma.com]]
 +
 +Interesante página que muestra como se guarda el archivo en el sistema git
 +  * [[https://jvns.ca/blog/2023/09/14/in-a-git-repository--where-do-your-files-live-/]]
  
 Usar Git-Extensions porque tiene buen GUI [[http://gitextensions.github.io/]] Usar Git-Extensions porque tiene buen GUI [[http://gitextensions.github.io/]]
Línea 10: Línea 13:
 Complementarlo con Git-ftp [[http://www.codingsips.com/install-configure-git-ftp-windows/|Manual de Instalación en Windows Git-FTP]] Complementarlo con Git-ftp [[http://www.codingsips.com/install-configure-git-ftp-windows/|Manual de Instalación en Windows Git-FTP]]
  
-{{youtube>HiXLkL42tMU?medium}}+{{ youtube>HiXLkL42tMU?medium }}
  
 comandos bash comandos bash
Línea 87: Línea 90:
  
 #Restaurar al ultimo commit #Restaurar al ultimo commit
-git checkout -- <nombre del archivo>+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 101: Línea 109:
  
   * [[https://git-scm.com/book/es/v2/Ramificaciones-en-Git-%C2%BFQu%C3%A9-es-una-rama%3F]]   * [[https://git-scm.com/book/es/v2/Ramificaciones-en-Git-%C2%BFQu%C3%A9-es-una-rama%3F]]
 +
 +{{ youtube>ZBexzpgj1GE? }}
  
 Manejo de versionados (brand, checkout): Manejo de versionados (brand, checkout):
Línea 111: 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 195: Línea 210:
  
 [[http://www.danielnavarroymas.com/deploy-automatico-de-versiones-con-git/]] [[http://www.danielnavarroymas.com/deploy-automatico-de-versiones-con-git/]]
 +
 +
 +==== Conexion ====
 +
 +<code>
 +#Para listar los servidores remotos:
 +
 +git remote -v
 +
 +git push -u origin <branch-name>
 +
 +git remote a
 +
 +# Configurar remote url
 +
 +git remote set-url origin <url>
 +
 +<url>
 +https://<usuario>:<key>@<url>/<usuario>/<repositorio>.git
 +
 +</code>
 +
 +  * **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 "safe" option for checking for updates.
 +  * **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.1745121980.txt.gz · Última modificación: 2025/04/20 04:06 por admin