我正在开发一个应在Android以及常规Java SE上运行的应用程序.
我有一个名为foobar-core的日食项目,其中包含Android和SE版本都使用的代码.我有另一个名为foobar-android的项目,其中包含所有android特定的代码.
我需要在foobar-android项目中引用一些foobar-core代码,因此我在设置->中将foobar-core添加到foobar-android中. Java构建路径->项目->构建路径上的必需项目.这很好用,因为我现在可以在foobar-android中使用来自foobare-core的代码.
问题出在这里:foobar-core和foobar-android都是独立的git存储库,这意味着它们都具有.git子目录.现在,每当我编译foobar-android时,我都会在“控制台”选项卡上收到很多警告.他们看起来像这样:
/foobar-core/src/.git/HEAD conflicts with another file already put at .git/HEAD
/foobar-core/src/.git/config conflicts with another file already put at .git/config
/foobar-core/src/.git/description conflicts with another file already put at > .git/description
/foobar-core/src/.git/hooks/applypatch-msg.sample conflicts with another file already > put at .git/hooks/applypatch-msg.sample
从foobar-core项目导入源代码时,如何告诉Eclipse忽略.git文件?