Can you clone two different repositories from CodeCommit into the same EC2 instance?

0

Hello, I would like to use a module from one repository while running my main file from a different repository - both in CodeCommit in the same AWS account. I read that if both repositories exist I can use sys.path. The question is can I clone both repositories to the same EC2 instance (on which I run my main function)? Thanks.

1 Risposta
0
Risposta accettata

Yes, you can clone one repo while inside the working directory of another. (If you're going to work on the files, be wary about accidentally adding/committing the files from the second repo into the first one though.)

If you would like to record the fact that the first repo uses the second repo as a module and have git handle it for you, you might want to look into Git Submodules.

profile pictureAWS
ESPERTO
James_S
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande