It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket does not track a subdirector

Zahra Eslami Feb 04, 2015

Can some one tell me why bitbucket does not track this directory in my repository ? This directory is missing in all of my branches . I tried to git add --force this directory but that does not help....

 

 

Selection_082.png

EDIT: The directory is full of important files and it is not ignored in my .gitignore. However, I can not see any of those files in bitbucket since the directory is not clickable (as you can see in the above screenshot). The changes in the files is not tracked as well. 

3 answers

1 vote
Seth Feb 05, 2015

Are there files in that directory? Git does not track directories themselves, it tracks files, so empty directories will be ignored.

If there are files, check for any .gitignore files to see if the contents of cbox-theme are being intentionally ignored.

Also, I'm a little confused. If Bitbucket isn't tracking the folder, how are you able to see it in bitbucket to take that screenshot?

Zahra Eslami Feb 05, 2015

Yest, there are a lot of important files in that folder. I don't have anything related to name of this directory and my gitignore. The reason that I keep Saying that bitbucket does not track this directory is that I can not open it and see what files I have in side that directly. Moreover all the file changes in there are not tracked as well. I don't understand why bitbucket just show a commit ID in front of this directory ? I think something is wrong and I am willing to give away my entire git history and re-init the repository safely if some one can provide me a safe instruction.

Zahra Eslami Feb 05, 2015

just edited my question to make it more clear

0 votes
Seth Feb 05, 2015

Thanks for the clarification. I don't know enough about Bitbucket to know what would cause that type of display. Your local git repository is independent from Bitbucket, other than the fact that Bitbucket is a remote. Could you confirm whether your local repo tracks the files? If you can't add the files to your local repo, there's a problem with your local repo configuration, and you might have more luck diagnosing the problem on stackoverflow, since it has a larger community.

0 votes

I think the folder is a subrepo, which is tracked separately.

Zahra Eslami Feb 06, 2015

@John Garcia [Atlassian] Thanks John. That might be the case. Do you have any solution for that ? I mean how can I remove a subrepo ? I don't see anything like .git in this directory

Hardik Lakdawala May 25, 2018

@Zahra Eslami1 did u resolve the issue? I have the same issue.

Neil Skinner Aug 20, 2018

I am having a similar issue. If I go to any specific commit and click view source, I can navigate to the folder path, but when viewing master/staging branch the folder is not visible. If I do a clean clone of master/staging, the folder is there. but just not in the web ui. It would normally go unnoticed but I have a README.md in that folder I am linking to from the README.md in the repo root, so it become an issue

Kevin Ogden Aug 21, 2018

Also having the same problem. What's going on!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,121 views 1 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you