Created
May 25, 2016 17:46
-
-
Save darklilium/24eecc6fa46fecf0ee7114add20a02c1 to your computer and use it in GitHub Desktop.
[GIT] Commands used frecuently.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init: inicia el repositorio local en carpeta seleccionada. | |
git status: visualiza la lista de archivos que están disponibles y su estado (stage o no stage) | |
git add --all : coloca en stage todos los archivos | |
git commit -am "message" : una vez hecho un add a un archivo, hace commit con un mensaje para guardar los cambios. | |
git push <mygit> <master> : hace un push a un repositorio (remoto o local). | |
git pull <mygit> <master> : hace un pull (merge) a un repositorio (remoto o local) trayendo los cambios. | |
git stage: te devuelve al ultimo commit realizado. | |
git stage clear: borra todos los stages hechos. | |
Comandos para servidor remoto: | |
git remote add <gitname> <url> : agrega un repositorio remoto, indicandole el alias y la url de la ubicación. | |
git remote : visualiza la lista de repositorios remotos agregados en tu repo local. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment