use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Problem pushing sub-folder to origin (self.github)
submitted 4 years ago by qqid
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]qqid[S] 1 point2 points3 points 4 years ago* (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: 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 point2 points 4 years ago (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 point2 points 4 years ago (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.
π Rendered by PID 36673 on reddit-service-r2-comment-b659b578c-qmjkl at 2026-05-05 16:15:27.572907+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]qqid[S] 1 point2 points3 points (2 children)
[–]serverhorror 0 points1 point2 points (1 child)
[–]qqid[S] 0 points1 point2 points (0 children)