[英]Github commit and import project from a folder in a repository
I've a repository. 我有一个资料库。 Inside it, there will be multiple folders which will contain different projects. 在其中,将有多个文件夹,其中将包含不同的项目。 Now I want to commit my project only to that folder and pull only from it. 现在,我只想将项目提交到该文件夹,然后仅从该文件夹中提取。 I'm using Android Studio for this. 我为此使用Android Studio。 Currently, I'm using different branches to do the job. 目前,我正在使用不同的分支机构来完成这项工作。 Can this be done directly from Android studio? 可以直接从Android Studio完成吗?
You have 2 way 你有两种方法
1 Using submodule 1使用子模块
repository 1 (your project) 资料库1(您的项目)
folder 1 资料夹1
folder 2 资料夹2
submodule folder 子模块文件夹
2 Just ignore it 2只是忽略它
https://git-scm.com/docs/gitignore https://git-scm.com/docs/gitignore
Btw: i suggest using git command
for more understanding about git 顺便说一句:我建议使用git command
以进一步了解git
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.