Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab can't open Directory

Tags:

git

gitlab

I have to subprojects in my gitlab repository, client and server, but I can't open the server directory, what does the symbol in the screenshot mean? I suppose it means it is a seperate git repository, but I checked the server directory and there was no .git directory in it.

enter image description here


1 Answers

This folder is a git submodule. If you have committed and pushed the .gitmodules file, it should point to the specified repository in this file, for instance :

[submodule "server"]
    path = server
    url = [email protected]:username/somerepo.git

Note that if when you click on the folder and it doesn't redirect to the remote repository, it could mean :

  • the external repo hasn't been added as a submodule (git submodule) but has been cloned into your repo (git clone)
  • you haven't committed/pushed the .gitmodules file but you did push the submodule
  • you have deleted the submodule locally but you didn't remove it from your remote so the it's still present on Gitlab

If you want to remove this submodule check this post

like image 164
Bertrand Martel Avatar answered Aug 31 '26 07:08

Bertrand Martel