Can you have multiple independent directories in a git repository?

Hi everyone,

Sorry if this question has been asked before, but hours of googling could still not clear this up for me.

What i mean is, if you have two independent directories, say c:/a/b/c/dir_one and d:/x/y/z/dir_two (neither being a child or a parent of the other), is it possible to have the two in the same repository?

Sort of like if the repository contained two symlinks to the dirs, but without using symlinks (which would't work in this case)?

Or do they need to be in separate repositories?

 

If anybody knows the answer, please share it with me (and the rest of the world) :)

Thank you very much!

Razvan

1 answer

0 vote

Hi

As far as I know, you can't do that git assumes a single parent directory.

Hi,

I'm really glad to get a definite (even negative) answer on this issue.

Now I can put it aside and find another solution.

 

Thank you!

Razvan

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you