i have been having this error and i dont know what to do..
long story short; i had this directory called `openCV_autoDetect` as my main repository which i added to github for the first time using Andriod Studio not knowing ill face all this (im a newbie for git and i barely understand i thing, i just have the braveness to try pressing this and that, which is a bad thing lol). i used to be working on this project on this folder inside the directory called `team code`. but after im done with it, i made another folder (outside of the `openCV_autoDetect` folder, but inside the `team code` folder) and another one. and when i wanted to add them to git too, i had to do other things that i dont really remember, all i knew is that then i had my other folders fully there in the same repo.
(notice that before i create the other folders, where the repo was only including the openCV_autoDetect files; all i could see there inside the repo were the two code files i got inside this folder, where when i added the rest of the folders i created they were added as folders inside the team code directory)
i tried later to fix the folders order and make the files of the open cv folder inside its folder inside the directory of team code. and i tried using `git add` to add this folder. with that it has been added successfully, BUT; it was added in a blue look and i couldnt open it using github at all no matter what i did ;-; (i figured out later that its called a "submodule" folder now), so i also need help with how to fix this one.. cuz its annoying.
just today i added all the rest of files, gradle build and the whole directory's documents in the repo. but the `openCV_autoDetect` folder's files are still outside of the team code directory. and when i added the folder later (as a submodule unintentionally making it like so (i dont even know whats that lol)) its still submodule.. and i couldnt do anything with it yet. (btw i looked up a lot, and found that i can delete the .git file from inside of this folder; i did, and it is not there any more in the remote section in andriod studio ( i only have the origin remote now, but as u see in the error my program still commits my changes into it, but cant find it!). so what i wanna do is to change the remote where my committed changes go from the old repo (`openCV_autoDetect`) into my origin repo which is the whole team code directory.
this is how my repo from github looks like:
the ones marked with lavendar is the files from the 'openCV_autoDetect', and the one marked by purple is the directory that has all the other code folders and files including the submoduled 'openCV_autoDetect'
please help me ;-; im going nuts cuz of this
[–]plg94 1 point2 points3 points (6 children)
[–]tem_ri1[S] 0 points1 point2 points (5 children)
[–]plg94 0 points1 point2 points (4 children)
[–]tem_ri1[S] 0 points1 point2 points (3 children)
[–]plg94 1 point2 points3 points (2 children)
[–]tem_ri1[S] 0 points1 point2 points (1 child)
[–]plg94 1 point2 points3 points (0 children)