2011-12-22 13 views
6

Sono abbastanza nuovo per Git, e sto avendo un problema con il fare un rebase, dove sembra mostrare un file ...Git rebase problema con i file con lo stesso nome, ma caso diverso

create.sql

e un file

create.sql

la create.sql non viene messo in scena, e non esiste fisicamente più, ma non posso continuare con la rebase ... quando provo git rebase --continue Ottengo il seguente ...

$ git rebase --continue 
KeyBlade/KeyBlade.Database/_Pending/Create.sql: needs update 
You must edit all merge conflicts and then 
mark them as resolved using git add 

stato Git mostrano la seguente ...

/c/src/git ((c3760e6...)|REBASE) 
$ git status 
# Not currently on any branch. 
# Changes to be committed: 
# (use "git reset HEAD <file>..." to unstage) 
# 
#  modified: KeyBlade/KeyBlade.Database/_Pending/create.sql 
# 
# 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: KeyBlade/KeyBlade.Database/_Pending/Create.sql 
# 

Non sono sicuro di quello che sta succedendo, ma se qualcuno può far luce su come posso risolvere questo, sarebbe molto apprezzato.

+0

Quale sistema operativo e il filesystem stai usando? – Mark

+0

Sto usando Windws 7 - File system NTFS –

risposta

10

per chiunque altro che ha questo problema che ho trovato un post al seguente sito ...

https://tortoisegit.org/issue/830

In poche parole, se si ha un nome di file foo.txt e quindi in conflitto con un file chiamato foo.txt, è possibile utilizzare il seguente comando git

git mv foo.txt foo.txt --force

Questo risolto il mio problema

+0

Se si verifica un errore di caso in futuro, è possibile eseguire il seguente comando git ... git config --global core.ignorecase true –

Problemi correlati