2011-12-22 31 views
6

我是相当新的Git的同名但不同情况下的文件,我有做底垫中,它似乎显示出文件中的问题......Git的变基带问题

create.sql

和文件

Create.sql

的Create.sql没有上演,而物理上不存在了,但我不能用底垫中继续...当我尝试git的变基--continue我得到以下...

$ 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 

Git的状态呈现以下...

/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 
# 

我不知道是怎么回事,但如果任何人都可以对我怎么能解决这个闪耀光芒,这将是大加赞赏。

+0

哪个OS和你正在使用的文件系统? – Mark 2011-12-22 13:31:05

+0

我正在使用Windws 7 - NTFS文件系统 – 2011-12-23 04:03:26

回答

10

其他任何人有这个问题,我发现以下站点后...

https://tortoisegit.org/issue/830

概括地说,如果你有一个文件名foo.txt的,然后将其与冲突名为foo.txt的文件,可以使用下面的命令的Git

混帐MV foo.txt的foo.txt的--force

这解决了我的问题

+0

如果将来出现错误,可以运行以下git命令... git config --global core.ignorecase true – 2012-01-10 05:26:22