Bird
0
0

Which of the following is the correct way to initialize a mono-repo using Git?

easy📝 Conceptual Q3 of 15
Microservices - CI/CD for Microservices
Which of the following is the correct way to initialize a mono-repo using Git?
Agit clone multiple repositories into one folder
Bgit init separately inside each microservice folder
Cgit branch for each microservice in one repo
Dgit init in a single root folder containing all microservices
Step-by-Step Solution
Solution:
  1. Step 1: Understand mono-repo Git setup

    Mono-repo uses one Git repository for all microservices stored under one root folder.
  2. Step 2: Identify correct Git command

    Running git init once in the root folder initializes the mono-repo.
  3. Final Answer:

    git init in a single root folder containing all microservices -> Option D
  4. Quick Check:

    Mono-repo Git init = single root folder [OK]
Quick Trick: Mono-repo uses one Git repo at root [OK]
Common Mistakes:
  • Initializing Git separately in each microservice folder
  • Cloning multiple repos into one folder (multi-repo)
  • Using branches to separate microservices

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes