Skip to content

Instantly share code, notes, and snippets.

@merolhack
Last active November 17, 2015 16:40
Show Gist options
  • Save merolhack/7f6ef73ee056904748f0 to your computer and use it in GitHub Desktop.
Save merolhack/7f6ef73ee056904748f0 to your computer and use it in GitHub Desktop.
Comandos para la administración de repositorios
# Agregar configuración del usuario actual
git config --global user.email "[email protected]"
git config --global user.name "Lenin Meza"
# Configuración del push
git config --global push.default simple
# Conocer la lista de repositorios
git remote
# Conocer las URL de la lista de repositorios
git remote -v
# obtener información del repositorio
git remote show origin
# Conocer todas las ramas del repositorio
git branch -a
# Obtener los últimos cambios
git fetch
# Revisar las diferencias
git diff ...origin
# Obtener los últimos cambios y hacer la mezcla
git pull
# Agregar archivo
git add src/Controller/InformesController.php src/Template/Informes/index.ctp
# Agregar mensaje
git commit -m "Controlador de los Informes"
# Enviar
git push origin master
# Fuente:
# git ready
# aprendiendo git de a un commit por vez
# http://es.gitready.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment