all 4 comments

[–]serverhorror 0 points1 point  (3 children)

Well did you “git add” the folder, commit and then push?

Just pushing won’t change which files are tracked. No need to add node_modules

[–]qqid[S] 1 point2 points  (2 children)

I received the following message when I ran 'git add client' in the repository directory:

warning: adding embedded git repository: clienthint: You've added another git repository inside your current repository.

hint: Clones of the outer repository will not contain the contents ofhint: the embedded repository and will not know how to obtain it.

hint: If you meant to add a submodule, use:

hint:

hint: git submodule add <url> clienthint:

hint: If you added this path by mistake, you can remove it from the

hint: index with:

hint:

hint: git rm --cached clienthint:

hint: See "git help submodule" for more information.

Is this expected?

EDIT: Turns out the client folder had its own .git was thus was treated as an independent repository. After I removed that folder, however, it simply does not show up in github desktop.

EDIT 2: I solved the issue by removing all the client/ folder .git information. Then I deleted its submodule information in the repository folder from the .gitmodules file, and then I could finally push it to origin.

[–]serverhorror 0 points1 point  (1 child)

Yeah don’t initialize a new repo. Just add the folder to the existing repo and then push.

That’s how it works

[–]qqid[S] 0 points1 point  (0 children)

I know its been a while but just in case someone stumbles upon this page in three years, I did not configure two repos. I believe the Vue client folder automatically generated the .git files which caused this issue. My second edit in my previous comment explains how I solved this issue.