Plz Help, 2 Repos inside each other to upload on Github
thatIITgirl

thatIITgirl @thatiitgirl

About: Coder, Pensive, Mountain addict, Ocean soul, 93% stardust. Running on daydreams and to-do lists. insta : https://www.instagram.com/thatiitgirl/ Follow me on Insta :

Location:
California
Joined:
Jun 17, 2020

Plz Help, 2 Repos inside each other to upload on Github

Publish Date: Jul 25 '20
2 5

There is a Chat App (Socketio/React/Node) that I'm trying to create. I want to upload it on github. The directory root has two separate folders - Client & Server, while I'm try to upload it, it is saying
1

"warning: adding embedded git repository: extractor/annotator-server
hint: You've added another git repository inside your current repository."

So, what I'm supposed to do? How to upload my project on github, when it has 2 repos inside?Any hints?

Comments 5 total

  • ajboni
    ajboniJul 25, 2020

    add them as git submodules

  • Heinek Halwin
    Heinek HalwinJul 25, 2020

    You probably copied one of those folders into the chat app folder. It might have a .git file in it, that's why it says another repo inside ur current respository. The .git file is hidden, so u need to enable hidden files to be viewed, inorder to see it.

  • Harsh Mangal
    Harsh MangalJul 25, 2020

    You can remove .git files from inner repo.

  • Hemant Joshi
    Hemant JoshiJul 25, 2020

    Open your client and server and delete the .git folder from both.

    Go to your main folder with client and server.

    Simply hit
    Git init
    Git add . && Git commit -m "Hii your issue is resolved"

    git remote add origin 🙂

    Git push🦄

    Thank you🙂

  • Lenmor Ld
    Lenmor LdJul 25, 2020

    You'll probably have to remove the git repo stuff for each inner folder, so they don't conflict with the parent one

    $ cd server/
    $ rm rf - .git/
    $ cd ../client/
    $ rm rf - .git/
    

    Then you can follow @hemantjoshi's suggestion above to put both of them in a parent repo that includes then both

Add comment