繁体   English   中英

使用同一 Git 存储库中的不同目录

[英]Working with different directories in the same Git respository

我正在研究一个涉及 Android 和远程 MySQL DB 通过 PHP 交互的项目。 While I have my android files in a directory and uploaded to Github repository, my PHP files are located in the htdocs of my Apache installation folder.

As both parts -the Android files and the PHP ones- are part of the same directory, I was wondering whether it's possible to work with Git + Github, having all of these files in the same repository but when pushing/committing/checking out all这些文件,每一个都进入其正确的目录?

最好的问候和感谢!

我认为您可以使用 git-new-workdir 来做到这一点。 我从未使用过它,但我发现这个网站可能可以帮助您入门:

http://kohei.us/2010/11/16/working-with-a-branch-using-git-new-workdir/

暂无
暂无

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

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