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

This widget could not be displayed.

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?

This widget could not be displayed.

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?

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,529 views 9 11
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