github2

Comandos y metodos sobre Git Hub

This project is maintained by Lekanda

Git Logo Comandos Git & GitHub

INDICE de comandos


Metodos


GIT HELP

GIT CONFIG

ALIAS

git s

git config --global alias.s "status -s -b"

git br

GIT INIT

GIT ADD

GIT COMMIT

Hacer commits

GIT LOG

GIT STATUS

CAMBIOS EN STAGE Y COMMIT

Actualizar y restaurar COMMITS

Deshacer cambios en STAGE

GIT RESET

ES PELIGROSO, mejor usar el REVERT, pero bien usado es una buena herramienta.

GIT RESET

GIT RESET –HARD

GIT RESET –SOFT

GIT RESET –MIXED

GIT REVERT

GIT BRANCH

GIT MERGE

Tipos de merge/uniones

GIT TAGS

GIT STASH

Comando Explicacion
git stash Guarda en el Stash los archivos modificados, y lo que este en el Stage
git stash list Lista los Stashs creados
git stash list –stat Lista los Stashs creados con mas info
git show stash Mas info de los Stash
git show stash@{3} Mas info de Stash 3
git stash -h Da comandos de ayuda
git stash apply Aplica los ultimos cambios que se han hecho en el stash y lo mete donde estes trabajando
git stash apply stash@{3} Aplica los cambios del Stash 3 y lo mete donde estes trabajando
git stash drop Borra el primero en la lista de los Stash
git stash drop stash@{2} En este ejemplo borra el segundo en la lista de los Stash
git stash clear :warning: CUIDADO: Borra todas las entradas del Stash :warning:
git stash saveComentario del Stash Comentar un Stash
git stash pop Hace los mismo que git stash apply

GIT REMOTE

Comando Explicacion
git remote add origin URLdeRepositorioRemoto Añade un repositorio remoto al proyecto
git remote Nos da los remotos
git remote -v Nos da los push y fetch remotos
   
   

GIT CLONE

Comando Explicacion
git clone urlRepositorioaClonar nombreCarpeta(opcional) Clona el repositorio a la carpeta donde se esta
   
   

GIT PUSH

Comando Explicacion
git push origin master Sube cambios al remoto origin
git push origin –all Sube varias ramas a la vez de golpe
git push Una vez hecho git push origin master con este vale para subir los cambios al repositorio remoto

GIT PULL

Comando Explicacion
   
   

GIT REBASE

BIBLIOGAFIA, CURSOS Y DEMAS FUENTES