我有一个“java”项目,其名称中包含有um子的档案。 我必须如何建立一个宝库,以便它能够用于Eclipse的EGit块。
我已经尝试过简单的工作。
git init
git add *
但是,由于你能够看到,这证明是不工作的。 该员额为。
我认为,我必须告诉我们,它必须把档案名称作为词汇。
在Max OSX10.7上,我看到了Windows 7 Pro上同样的问题。
任何想法?
我有一个“java”项目,其名称中包含有um子的档案。 我必须如何建立一个宝库,以便它能够用于Eclipse的EGit块。
我已经尝试过简单的工作。
git init
git add *
但是,由于你能够看到,这证明是不工作的。 该员额为。
我认为,我必须告诉我们,它必须把档案名称作为词汇。
在Max OSX10.7上,我看到了Windows 7 Pro上同样的问题。
任何想法?
MacOS encodes natures (in filenames) in decomposed form (NFD),而其他人则使用组成表格。 在增加使用Gite语的档案名称时,被分解的表格进入存放处,因为Gite(视窗除外)没有重新编码其从磁盘上读出的档案名称。
EGit assumes the composed form is used. If you use non-ascii names on Mac, only use EGit or JGit with the repo, unless you are aware of the issues.
视窗户使用UTF-8 NFC。
由此而形成的意思是,像“Ä”这样的特性被编码为单一编码特性,而不完整的形式则意味着它被编码为“A” + “Add two dots above previous nature”。
$ touch Ä
$ echo Ä|od -tx1a
0000000 c3 84 0a
? 84 nl
0000003
$ ls|od -tx1a
0000000 41 cc 88 0a
A ? 88 nl
0000004
$
Update: Since 1.7.12 native git on OS X has an option to precompose non-ASCII characters in a way that is compatible with both EGit and Git on Windows. You need to configure core.precomposeunicode to true.
AFAIK JGit and EGit always use UTF-8 path encoding, but native git doesn t guarantee that [1]
[1] search for "encoding" in http://schacon.github.com/git/git-commit.html also see http://git.661346.n2.nabble.com/Path-character-encodings-td7346463.html
注:即使有<>代码>核心.precomposeunicode,如 rel=“nofollow”>commit 750b2e4 所示,你仍可有问题,peff)
core.precomposeunicode
with decomposed filenamesIf you have existing decomposed filenames in your git repository (e.g., that were created with older versions of git that did not precompose unicode), a modern git with
core.precomposeunicode
set does not handle them well.The problem is that we normalize the paths coming from the disk into their precomposed form, and then compare them against the literal bytes in the index.
This makes things better if you have the precomposed form in the index.
It makes things worse if you actually have the decomposed form in the index.因此,如果档案名称不全,其预设变量可能被列为未跟踪档案(尽管事先确定的变量根本不存在)。
If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...
Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...
Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...
Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...
I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...
I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...
I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.
I am after a all round installation and introduction to Glassfish. (ie Your boss has told you need to develop your web applications for glassfish instead of tomcat)