sto cercando di tirare le modifiche dal ramo remoto ma ottenere un errore che non ha sensoGit errore di tiro: Le modifiche locali alle seguenti file sarebbe stato sovrascritto da fusione:
quando faccio
git pull
torno
error: Your local changes to the following files would be overwritten by merge:
file/name/path
some/more/filenamepath
Please, commit your changes or stash them before you can merge.
Aborting
problema è che io non ho le modifiche che devono essere impegnati Quando faccio git status
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 2 and 7 different commits each, respectively.
#
nothing to commit (working directory clean)
there are no working changes
Ho provato git reset --hard HEAD
ma che non ha aiutato
tutte le idee?
I file sono nel file system NFS, forse questo ha qualcosa a che fare con. Questo è su OSX
Grazie
UPDATE: Questo problema ha a che fare qualcosa con NFS, perché quando sono andato alla fonte originale e fatto git pull da lì tutto ha funzionato bene, il che è stato risolto per questo esempio, ma ancora non sono sicuro del motivo per cui causa problemi con NFS.
Hai provato a lasciare fuori HEAD nel tuo ripristino git --hard? Provalo prima. –
@DylanCorriveau 'HEAD' è in realtà l'impostazione predefinita. – musiKk
Potete clonare il repository sul disco rigido del sistema e fare il vostro lavoro lì? Quindi è possibile ignorare completamente il problema NFS .... – Yawar