简体   繁体   English

Android版本控制和Git

[英]Android Version Control and Git

I have a large Android Library project of reusable components that multiple application use. 我有一个包含多个应用程序使用的可重用组件的大型Android库项目。 This library is under git control. 这个库受git控制。 The multiple applications that use this Android Library need to point to different commits of the Android Library project (Git Submodules). 使用此Android库的多个应用程序需要指向Android库项目(Git子模块)的不同提交。 But Eclipse does not let submodules be children directories of the current project but rather siblings in the current workspace. 但Eclipse不允许子模块是当前项目的子目录,而是当前工作空间中的兄弟节点。 How can I make this work? 我怎样才能做到这一点?

For instance if I update the Android Library for and one of the applications, I still want the other application pointing to the original commit of the Android Library. 例如,如果我为其中一个应用程序更新Android库,我仍然希望其他应用程序指向Android库的原始提交。

Any help would be much appreciated... 任何帮助将非常感激...

对于我的项目,我将子模块保存为原始项目中的子目录,然后将子模块作为单独的项目与父项一起导入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM