Ho due filiali localmente, master
e Berislav
. Quest'ultimo è attualmente attivo, e ho commesso tutte le modifiche. Quando cerco di cassa a master
, ricevo il seguente messaggio:Git mi chiede di confermare o salvare le modifiche sul master di checkout, anche se tutte le modifiche sono state commesse?
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
Tuttavia, tutto il resto ho provato - commit
, status
, merge
- mi dice che non c'è niente di commettere (directory di lavoro pulito). Cosa devo fare per arrivare al mio ramo master
?
EDIT: Quando provo git stash
, sto ottenendo:
error: feeding unmodified [file path] to diffcore
per tutti i file elencati nel l'errore precedente.
http://stackoverflow.com/questions/6337122/git-branches-behaving-strangely e http: // stackoverflow.com/questions/6638937/switching-branches-in-git-when-will-i-get-you-have-local-changes-cannot-switc risposte potrebbero aiutare, con http://stackoverflow.com/questions/ 7463392/switching-a-branch-after-aborting-current-changes-in-git alternative possibili – VonC
Qual è l'output di 'git status'? – manojlds
+1 a manojlds. Questa è un'informazione utile per risolvere questo problema. –