开发者

Letting git know that a file was renamed - OS X file renamed from lowercase to uppercase shows as untracked

I renamed a folder without using git mv or any other git command, from lowercase to uppercase, now git shows the new folder as not tracked and at the same time is tracking files inside the folder.

I renamed "Jogo do rato" to "Jogo do Rato" and than made a git add --all. Git found new files and changes as it should but it now shows every folder inside "Jogo do Rato" as untracked. I would like to get rid of this "untracked" files, bu开发者_如何学Pythont am at loss as what way to go.

I'm using OS X Snow Leopard, my drive is in Mac OS Extended (Journaled), case insensitive and git version 1.6.6.

Regards,

Sérgio


I manage to find a way to solve the problem. I changed the config option core.ignorecase from true to false, re-added the files that git was always seeing as new files, and commited my changes.

I'm still looking to see if I lost something or if anything is in a state that shouldn't be but I think I was able to solve this problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜