Forums

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

Still recognize folder as submodule although .git has been deleted

Amit Barlev
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 18, 2018

Hey guys,
A folder named "client" was a repository for a while because I haven't started working on backend yet. Later on, I added backend and wanted to make a new repository with both folders, So I did. But ever since then, Client is detected a submodule folder although ".git" folder has been deleted and I dont see any traces of it ever being a git folder.
What am I missing?
68.jpgI've serched the internet and didn't really come up with anything...

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 21, 2018

Hi Amit, have you followed all the necessary steps to remove the submodule?:

  1. Delete the relevant line from the .gitmodules file.
  2. Delete the relevant section from .git/config.
  3. Run git rm –cached path_to_submodule (no trailing slash).
  4. Commit and delete the now untracked submodule files.

This is explained at Submodules tips.

As always, remember to make a backup of your repo before going ahead with this operation, in case something doesn't go as expected.

Let us know if you need any further assistance!

Kind regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events