Skip to content

Instantly share code, notes, and snippets.

@darklilium
Created May 25, 2016 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darklilium/24eecc6fa46fecf0ee7114add20a02c1 to your computer and use it in GitHub Desktop.
Save darklilium/24eecc6fa46fecf0ee7114add20a02c1 to your computer and use it in GitHub Desktop.
[GIT] Commands used frecuently.
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