Tengo dos sucursales localmente, master
y Berislav
. Este último está actualmente activo, y he cometido todos los cambios. Cuando intento por caja para master
, me sale el siguiente mensaje:Git me pide que confirme o oculte los cambios en el maestro de pago, aunque se hayan realizado todos los cambios.
error: Your local changes to the following files would be overwritten by checkout: [list of files changed in the active branch] Please, commit your changes or stash them before you can switch branches. Aborting
Sin embargo, todo lo demás que probamos - commit
, status
, merge
- me dice que no hay nada para cometer (directorio de trabajo limpio). ¿Qué debo hacer para llegar a mi sucursal master
?
EDIT: Cuando intento git stash
, estoy recibiendo:
error: feeding unmodified [file path] to diffcore
para todos los archivos que aparecen en el error anterior.
http://stackoverflow.com/questions/6337122/git-branches-behaving-strangely y http: // stackoverflow.com/questions/6638937/switching-branches-in-git-when-will-i-get-you-have-local-changes-cannot-switc las respuestas pueden ayudar, con http://stackoverflow.com/questions/ 7463392/switching-a-branch-after-aborting-current-changes-in-git como posibles alternativas – VonC
¿Cuál es la salida de 'git status'? – manojlds
+1 a manojlds. Esa es información útil para resolver este problema. –