0
0
Gitdevops~10 mins

Monorepo vs multi-repo decision in Git - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to clone a repository named 'project' from GitHub.

Git
git clone [1]
Drag options to blanks, or click blank then click option'
Agit status
Bhttps://github.com/user/project.git
Cgit push origin main
Dgit commit -m 'init'
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands like git push or git status instead of a URL.
2fill in blank
medium

Complete the command to create a new branch named 'feature' in your local git repository.

Git
git [1] feature
Drag options to blanks, or click blank then click option'
Amerge
Bpush
Ccommit
Dbranch
Attempts:
3 left
💡 Hint
Common Mistakes
Using git merge or git push which do different things.
3fill in blank
hard

Fix the error in the command to push the 'feature' branch to the remote repository.

Git
git push origin [1]
Drag options to blanks, or click blank then click option'
Amain
Bclone
Cfeature
Dorigin
Attempts:
3 left
💡 Hint
Common Mistakes
Pushing the wrong branch name or using 'origin' as branch name.
4fill in blank
hard

Fill both blanks to create a new monorepo directory and initialize it as a git repository.

Git
mkdir [1] && cd [2] && git init
Drag options to blanks, or click blank then click option'
Amonorepo
Bmulti-repo
Crepo
Dproject
Attempts:
3 left
💡 Hint
Common Mistakes
Using different directory names for mkdir and cd commands.
5fill in blank
hard

Fill all three blanks to create a multi-repo setup by cloning two separate repositories named 'frontend' and 'backend'.

Git
git clone [1] && git clone [2] && ls [3]
Drag options to blanks, or click blank then click option'
Ahttps://github.com/user/frontend.git
Bhttps://github.com/user/backend.git
Cfrontend backend
Dfrontend
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong URLs or listing only one directory.