git clone based on profile and SSH Key
Opened this issue · 0 comments
aleixmorgadas commented
Problem
Having multiple git profiles is likely that we have a SSH key for each. At clone time, we need to choose which of those SSH Keys we need to use to access the Git Repository.
Possible solution
- When configuring a new profile, also ask for which SSH Key to use.
- Add command to clone as
git-profile clone --profile=<profile_name> <repository_url>
- Repository is cloned, the profile is set to
<profile_name>
with the SSH Key configured.