It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 votes
minnsey Atlassian Team Jun 22, 2017

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
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,907 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you