Pro Git
Pro Git
🎯 ¿Cansado de los anuncios?
Elimínalos ahora 🚀
×
Crea tu biblioteca personal!
Si aún no tienes cuenta, registrarse es gratis y rápido. Al hacerlo, podrás guardar tus libros en tu biblioteca personal, y reanudar la lectura exactamente donde la dejaste, en cualquier dispositivo, sin descargas ni configuraciones adicionales.
Iniciar sesión o Registrarse
$ vim CONTRIBUTING.md
$ git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: README
modified: CONTRIBUTING.md
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: CONTRIBUTING.md
¡¿Pero qué…?!
Ahora CONTRIBUTING.md aparece como preparado y como no preparado.
¿Cómo es posible?
Resulta que Git prepara un archivo de acuerdo al estado que tenía cuando ejecutas el comando git add.
Si confirmas ahora, se confirmará la versión de CONTRIBUTING.md que tenías la última vez que ejecutaste git add y no la versión que ves ahora en tu directorio de trabajo al ejecutar git status.
Si modificas un archivo luego de ejecutar git add, deberás ejecutar git add de nuevo para preparar la última versión del archivo:
👉 Descargar el audiolibro GRATIS en Amazon Reportar problema / Sugerencias