Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket folder shows as empty, but with weird number in name

tizianatroukens May 10, 2019

Hi,

Some time ago I decided to "merge" some projects of mine into one single repository. To do so I checked out both repositories locally, removed the .git file in the one repository I was about to move into the other, then moved the files, added them, commited them, pushed them.

I also permanently deleted the old repository (on Bitbucket.org).

Locally, when I run git status, it's says I'm all clean, nothing to show. When I do git push, same message. When I cd into the specific directory that comes from the old repository and I run 'git remote show origin' I see the correct (new) origin (it's the same when I run that command in the folders up higher in the chain). I also checked with 'ls -lta' and there's no .git files left.

But now comes the problem: on the server, I only see the (empty) directory, with a number between brackets added to the name (locally the name is 'git'). No more info, image icon as if it's a directory, it's not 0 bytes either, but it's not clickable to browse deeper into it. When I clone the repository on another computer, the directory is there, but effectively EMPTY. Nothing in it. (luckily I still have it on this laptop!).

issue.png

What is going wrong? How can I fix this?

1 answer

1 accepted

1 vote
Answer accepted
tizianatroukens May 10, 2019

Okay, I seem to have fixed it, but I don't completely understand the background of the issue.

I renamed the "git" directory into "git-workshop" (oh the irony). I ran "git status" and got the whole bunch of files under the directory as "New file". I then ran "git add", "git commit -m '...'", "git push" and it's now all present on Bitbucket without weird numbers or icons.

So it seems as if the problem was the directory name "git". But... it has been "git" all along, when it was in the previous repository already, and there it didn't give any issues... 

So, the issue itself is solved (yay), but if anyone could explain me the actual core problem, that'd be highly appreciated. I might even add it as a nice-to-know to the workshop ;-)

Ivan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2019

I still have this problem and I cannot solve it. my folder name however is named "app".

I cannot change the folder name as my server looks for that folder to run.

Like Poonam likes this
tizianatroukens August 12, 2019

Have you tried moving the folder to a separate (new, temporary) repository? What does that give? (This way you could rule out the name as possible root cause)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events