Git & GitHub Repos

Scenario -  Here are my directories

± Source

|   

±- repos   

    |   

    ±-LearnGit

    |   

    ±-TestGit

So I navigated to in Bash to 

± Source

|   

±- repos

    |   

   ±-LearnGit and ran git init

However, the result was the following

± Source

|   

±- repos

    |   

   ±-LearnGit

    |   

   ±-TestGit

   ±-.gitattributes

   ±-.gitignore

I was hoping each folder would have its own repository

± Source

|   ±- repos

    |    ±-LearnGit

         ±-.gitattributes

         ±-.gitignore

    |    ±-TestGit

         ±-.gitattributes

         ±-.gitignore

  1. How do I fix this?

  2. What did I do wrong?

A repo contains multiple folders but the folder in a repo are not independent repos 

you structure looks good to me 

1 Like