Folder shows up empty after push it

Hi.

I had a repository called "Python". It contained some folders and files. Then I created a new repository with a different name. This new repository included the same "Python" folder, which I just refered. The new repository contained other folders as well.

I commited and pushed the content of the new repository. All the folders were successfully pushed but the "Python" folder. I tried to commit and push two copies of that folder, named "Py" and "Python27" but the problem still appears. When I clone the repository from a second computer, those "Python", "Py" and "Python27" folders are empty. Besides, browsing the Bitbucket web, in the "source" tab, it shows those folders like this:

I think the problem could be related to the fact that the "Python" folder has been a repository itself before. I'm not sure.
How can I fix this?
Thank you!

1 answer

1 accepted

Check if the Python folder contains a .git folder and if yes - remove it and try to commit again

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

712 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