3. Clonar seus repos
Você vai precisar clonar localmente todos os repos que tem acesso. Clone = cópia funcional que sincroniza com o GitHub.
Pré-requisito: instalar GitHub CLI (gh)
Seção intitulada “Pré-requisito: instalar GitHub CLI (gh)”Na sua máquina (Mac):
brew install ghDepois:
gh auth loginResponde as perguntas:
- Where: GitHub.com
- Protocol: HTTPS
- Auth git: Yes
- How: Login with a web browser
Cola o código que aparece, autoriza no browser.
Criar pasta base
Seção intitulada “Criar pasta base”Sugestão: tudo em ~/ventures/emotion-studios/:
mkdir -p ~/ventures/emotion-studioscd ~/ventures/emotion-studiosClonar repos comuns (todo mundo)
Seção intitulada “Clonar repos comuns (todo mundo)”Todo mundo tem acesso a estes 3. Rode:
gh repo clone emotionstudios-git/registrygh repo clone emotionstudios-git/operationsgh repo clone emotionstudios-git/knowledge-basegh repo clone emotionstudios-git/knowledgeClonar seu repo da empresa
Seção intitulada “Clonar seu repo da empresa”Roda só o da sua empresa:
| Você | Comando |
|---|---|
| Silas (Oinc) | gh repo clone emotionstudios-git/oinc-filmes |
| Paulo (1BMG) | gh repo clone emotionstudios-git/1bmg |
| Filipe (AdsVenture) | gh repo clone emotionstudios-git/adsventure |
| João (Creator) | gh repo clone emotionstudios-git/creator-reply e gh repo clone emotionstudios-git/creator-beats |
Como saber se funcionou
Seção intitulada “Como saber se funcionou”ls ~/ventures/emotion-studiosDeve listar as pastas de cada repo que você clonou.
cd ~/ventures/emotion-studios/registrygit statusDeve mostrar:
On branch mainYour branch is up to date with 'origin/main'.nothing to commit, working tree clean.