Last active
August 29, 2015 14:17
-
-
Save mrroot5/a97d0499c5a49a0c4de0 to your computer and use it in GitHub Desktop.
Cambios en archivos
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
# BORRAR ARCHIVOS | |
# Elimina un fichero en el directorio de trabajo y en el Index | |
git rm file_name | |
# Elimina un fichero solamente en el Index | |
git rm --cached file_name | |
# Mismo caso que el anterior | |
git reset HEAD file_name | |
git checkout file_name | |
# AGREGAR ARCHIVOS DESPUES DE HACER COMMIT | |
# Tambien permite reescribir el comentario | |
git commit --amend | |
# RESTAURAR ARCHIVOS | |
# Toma el de la version del HEAD, osea, del ultimo commit | |
git checkout -- file_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment