Forums

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

How to remove a folder that appears as a submodule, but really isn't a submodule.

kiusau
Contributor
November 26, 2019

Please do not ask me how this has occurred, for I can only guess and would very probably be wrong.

I have in my local folder a nested copy of my local folder.  This nested copy has been recognized by Bitbucket as a submodule (a folder icon that contains a folder), but there is no record of it in a .gitmodules file -- neither on my local server, nor on Bitbucket, nor on my remote server.  I even checked my .git/config file -- nothing. 

What would be the best way to remove the folder on my local drive, and its empty registered equivalent on the Bitbucket cloud and remote server?

Roddy

1 answer

0 votes
kiusau
Contributor
November 28, 2019

That I may help with the response to this question.

1) Would I remove first remove the subfolder and its .git subfolder in my local repository, or would I first remove the reference to it in my Bitbucket repository?

2) Also, would you recommend a procedure other than $ rm -rf in my local repository and a simple delete in my Bitbucket repository?

If you have an alternative strategy please provide it and explain why, else I will simply rebuild the whole thing.

Roddy

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events