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.

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,477 views 26 12
Join discussion

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