bitbucket repository


I'm beginning in using bitbucket
I want to know how to have the following directory structure

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 because it's necessary to give the url 

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.

0 votes

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.




Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

288 views 0 12
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