Folder shows up empty after push it


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

1,750 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