bitbucket repository

Hello,

I'm beginning in using bitbucket
I want to know how to have the following directory structure
https://bitbucket.com/username/repository.git

where the repository is itself the eclipse project , i do not want to have the structure : a repository that contains the eclipse project. see please the image.Capture.PNG

 

I want to have directly the source code under the repository called TeleTPBundle.

 

thank for your help!

4 answers

What you want to do can definitely be done, but it will be easiest if you start over. How did you get your source on Bitbucket? Did you upload it directly? Did you push a local repository? If you have a local repository, what client are you using?

i created first a repository called TeleTPBundle, then I created an eclipse project and i commit and push it locally then remotely and i got that result. However, i want to have the source code directly under the repository and not to have repository/project/source_code

and i cannot give the url https://bitbucket.com/username because it's necessary to give the url https://bitbucket.com/username/repository.git 

Can you help me and tell me how to do?

I assume you are using Eclipse as your Git client? It may not allow you to move the "root" or your repository into the TeleTPBundle folder. If you use a different git client, you should be able to go inside that folder, and initiate a git repository there (git init). You would have to delete the existing .git folder first.

Hello, Sahar!

The issue you reported cannot actually be resolved through Bitbucket itself, but by recreating your .git repository. As you are using Eclipse, the best way to do that is to create a new repository inside Eclipse. Please follow the instructions below in order to create a new repository and have it as the root of the project.

warning IMPORTANT: Be sure to have a backup of your project! You never know what can happen...

  1. If you already have a repository for your project, delete it and disconnect your Eclipse project from it;
  2. Right-click your Eclipse project and go to "Team>Share project..."
  3. Select "Git" as the type;
  4. Then, on the page for creating a repository, check the box that says "Use or create repository in parent folder of project" and click on "Create Repository"; Screenshot 2014-12-26 14.59.38.jpg
  5. Then, just commit and push it to your Bitbucket's URI and you'll have the root of your project on the root of the repository;

If you have any additional doubts or face any trouble on the procedure indicated above, just respond to this answer.

 

Regards,

João

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

2,044 views 1 5
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