开发者

Make Git repository from two different folder locations?

I have two different folders located not under the same pa开发者_StackOverflow中文版rent folder.

Is it possible to make a Git repository that includes them both rather than I having to make two Git repositories one for each one?


Move these directories to a single parent, create a git repo, and create symlinks to the directories in previous paths.

In a similar situation I also created a script to make these symlinks automatically (I had much more of them than 2) and added it to the repo.


This can be done by having a folder with hard links to the two directories, thereby giving them a common parent folder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜