• <i id='rleq9'><tr id='rleq9'><dt id='rleq9'><q id='rleq9'><span id='rleq9'><b id='rleq9'><form id='rleq9'><ins id='rleq9'></ins><ul id='rleq9'></ul><sub id='rleq9'></sub></form><legend id='rleq9'></legend><bdo id='rleq9'><pre id='rleq9'><center id='rleq9'></center></pre></bdo></b><th id='rleq9'></th></span></q></dt></tr></i><div id='rleq9'><tfoot id='rleq9'></tfoot><dl id='rleq9'><fieldset id='rleq9'></fieldset></dl></div>

    <small id='rleq9'></small><noframes id='rleq9'>

        <bdo id='rleq9'></bdo><ul id='rleq9'></ul>
    1. <tfoot id='rleq9'></tfoot>

      <legend id='rleq9'><style id='rleq9'><dir id='rleq9'><q id='rleq9'></q></dir></style></legend>

      1. 如何防止 .git 目录在重建期间被复制到 bin 目录

        时间:2023-07-28
            <i id='MZN3V'><tr id='MZN3V'><dt id='MZN3V'><q id='MZN3V'><span id='MZN3V'><b id='MZN3V'><form id='MZN3V'><ins id='MZN3V'></ins><ul id='MZN3V'></ul><sub id='MZN3V'></sub></form><legend id='MZN3V'></legend><bdo id='MZN3V'><pre id='MZN3V'><center id='MZN3V'></center></pre></bdo></b><th id='MZN3V'></th></span></q></dt></tr></i><div id='MZN3V'><tfoot id='MZN3V'></tfoot><dl id='MZN3V'><fieldset id='MZN3V'></fieldset></dl></div>

              <tbody id='MZN3V'></tbody>

          • <legend id='MZN3V'><style id='MZN3V'><dir id='MZN3V'><q id='MZN3V'></q></dir></style></legend>
            1. <tfoot id='MZN3V'></tfoot>

              <small id='MZN3V'></small><noframes id='MZN3V'>

                • <bdo id='MZN3V'></bdo><ul id='MZN3V'></ul>
                  本文介绍了如何防止 .git 目录在重建期间被复制到 bin 目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  一个 .git 目录不断重新出现在我的项目中,在我认为应该被忽略的目录中.每次我清理项目或在 Eclipse 中刷新它时,它都会重新出现.重复的 .git 目录会导致冗余文件阻止项目构建.

                  A .git directory keeps reappearing in my project, inside a directory that I think should be ignored. It reappears each time I clean the project or refresh it in Eclipse. The duplicated .git directory results in redundant files that prevent the project from building.

                  我在 Eclipse 中有一个 Android 项目,它链接来自 Java 项目的源代码,这是 LibGDX 处理项目的方式.我不想要的 .git 目录包含一个导致冲突的文件,所以我每次要构建到设备时都必须删除它.

                  I have an Android project in Eclipse that links source from a Java project, which is the way LibGDX handles a project. The .git directory that I don't want contains a file that causes a conflict, so I have to delete it every time I want to build to device.

                  它正在创建目录 MyProject/bin/classes/.git.但我的 .gitignore 文件中有 bin/.我的存储库在 MyProject 中.

                  It is creating the directory MyProject/bin/classes/.git. But I have bin/ in my .gitignore file. My repository is in MyProject.

                  冲突文件是 inclasses.gitCOMMIT_EDITMSG.这与我的链接源 Java 项目中的一个文件冲突:gen.gitCOMMIT_EDITMSG.也是同样的问题,因为我在该项目的 .gitignore 中有 gen.

                  The conflicting file is inclasses.gitCOMMIT_EDITMSG. This conflicts with a file in my linked source Java project: gen.gitCOMMIT_EDITMSG. Also the same issue, because I have gen in the .gitignore of that project.

                  我很确定 Eclipse 或 ADT 在重建或清理项目时会将 .git 目录复制到 bin 目录.

                  I am pretty sure either Eclipse or ADT that is copying the .git directory over to the bin directory when it rebuilds or cleans the project.

                  所以我现在的问题是,如何让 Eclipse 和/或 ADT 停止这样做?

                  So my question now is, how do I get Eclipse and/or ADT to stop doing that?

                  (如果您想查看我的旧 .gitignore,我认为这无关紧要,因为它已正确设置为忽略 bin 目录,您可以单击已编辑"链接在这篇文章的历史记录中查看它.)

                  推荐答案

                  如果您想要排除 *.git 文件以在 eclipse 中构建期间复制,您可以在该特定项目的 Java Build Path 菜单下进行设置,然后将 *.git 添加到排除模式中.这里非常棘手,因为您可以指定包含模式或排除模式,但不能同时指定两者.因此,也许您想尝试排除 *.git 以便它在构建期间不会复制.

                  If what you want is to exclude *.git file to be copied during the build in eclipse, you can set this under Java Build Path menu for that specific project, and then add *.git into the exclusion patterns. It is quite tricky here because you can either specify inclusion patterns, or exclusion patterns, but not both of them. So, maybe you want to try to exclude *.git so that it does not copy during build.

                  例如看下面的截图:

                  这篇关于如何防止 .git 目录在重建期间被复制到 bin 目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 libgdx 渲染表情符号 下一篇:如果我从小部件运行,游戏中的图像会在 Androi

                  相关文章

                  最新文章

                • <legend id='RzqpE'><style id='RzqpE'><dir id='RzqpE'><q id='RzqpE'></q></dir></style></legend>

                    <small id='RzqpE'></small><noframes id='RzqpE'>

                      • <bdo id='RzqpE'></bdo><ul id='RzqpE'></ul>
                    1. <i id='RzqpE'><tr id='RzqpE'><dt id='RzqpE'><q id='RzqpE'><span id='RzqpE'><b id='RzqpE'><form id='RzqpE'><ins id='RzqpE'></ins><ul id='RzqpE'></ul><sub id='RzqpE'></sub></form><legend id='RzqpE'></legend><bdo id='RzqpE'><pre id='RzqpE'><center id='RzqpE'></center></pre></bdo></b><th id='RzqpE'></th></span></q></dt></tr></i><div id='RzqpE'><tfoot id='RzqpE'></tfoot><dl id='RzqpE'><fieldset id='RzqpE'></fieldset></dl></div>
                    2. <tfoot id='RzqpE'></tfoot>