repository is unrelated

Hi I am new to bitbucket, i am having issue while pushing my changes to bitbucket. Here is my set up

I have a MainRepository and a nested subrepository. I am not able to push any changes under my subrepository (which is nested)

Here is the following commands

hg init MainRepo

cd MainRepo

hg init nested

echo nested = nested > .hgsub

hg add .hgsub

after the initial push to Bitbucket.. any changes done under nested (subrepository) is not recognised.

Here is the error message "abort: repository is unrelated"

Thanks in advance any help would be appreciated.

Murali

1 answer

0 vote
Jason Worley Atlassian Team Apr 18, 2013

Greetings!

Its hard to pinpoint the exact root cause after the fact and with limited information. For example, I would want to drill down on what exact commands you used after the initial push to Bitbucket and any subsequent commands that followed. That would include the output messsages you received along the way.

That all being said, I am leaving you with a previous response that hopefully got you on the right path:

"In general, subrepos aren't used 'live'. You create them separately, then clone them at a specific revision in your Git repo. When you need to make changes to the subrepo, you do it separately, then go back to the main repo and update which revision you are at. Here is a pretty good rundown of how they work: http://git-scm.com/book/en/Git-Tools-Submodules"

Cheers,

Jason | Atlassian

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

716 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot