
Daniel Alejandro Romero
Preguntacuando quiero usar el segundo git commit me salta una especie de alert con opcion multiple
E325: ATENCIÓN Se ha encontrado un archivo de intercambio con el nombre "C:/Users/d7n45/proyectosuper/.git/.C OMMIT_EDITMSG.swp" propiedad de: d7n45 de fecha: Sat Jun 8 15:31:38 2019 nombre del archivo: ~d7n45/proyectosuper/.git/COMMIT_EDITMSG modificado: SI nombre del usuario: d7n45 nombre del servidor: LAPTOP-BKV6EKR2 ID del proceso: 398956 al abrir el archivo "C:/Users/d7n45/proyectosuper/.git/COMMIT_EDITMSG" de fecha: Sat Jun 8 17:01:40 2019 MÁS NUEVO que el archivo de intercambio! (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. Si es así, use ":recover" o "vim -r C:/Users/d7n45/proyectosuper/.git/COMMIT_EDITMSG" para recuperar los cambios (véa ":help recovery"). Si Ud. ya ha hecho esto, borre el archivo de intercambio "C:/Users/d7n45/proyectosuper/.gi t/.COMMIT_EDITMSG.swp" para evitar este mensaje. ¡El archivo de intercambio "C:/Users/d7n45/proyectosuper/.git/.COMMIT_EDITMSG.swp" ya existe! [A]brir para lectura únicamente, (E)ditar de todas formas, (R)ecuperar, (B)orrar, (S)alir, (A) bortar:
no importa la opcion que escoja, siempre me arroja la misma pantalla
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Changes to be committed: # modified: historia.txt # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ C:/Users/d7n45/proyectosuper/.git/COMMIT_EDITMSG [unix] (17:01 08/06/2019) 1,0-1 Todo "C:/Users/d7n45/proyectosuper/.git/COMMIT_EDITMSG" [UNIX] 8L, 213C
no me queda de otra mas que cerrar git y volverlo a abrir
acato las intrciones de git , de usar el comando"git reset"
d7n45@LAPTOP-BKV6EKR2 MINGW64 ~ (master) $ cd proyectosuper/ d7n45@LAPTOP-BKV6EKR2 MINGW64 ~/proyectosuper (master) $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: historia.txt d7n45@LAPTOP-BKV6EKR2 MINGW64 ~/proyectosuper (master) $ git commit historia.txt
Martin Fernando Vega Ortega
me parece que te falta el
git add .
y el mensaje que seria algo asi como
git commit -m "aqui va el mensaje"