I have two files, say FrontEnd and BackEnd in two separate git repos.
I want to combine them into one repository, and copy-pasted them into a brand new repo.
I get this error:
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: 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> BackEnd
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached BackEnd
hint:
hint: See "git help submodule" for more information.
And the BackEnd file does not upload.
- How can I Upload just as it is (losing all the previous changes)
- What are the pros and cons vs using the submodule?