aleixmorgadas/git-profile

git clone based on profile and SSH Key

Opened this issue · 0 comments

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

  1. When configuring a new profile, also ask for which SSH Key to use.
  2. Add command to clone as git-profile clone --profile=<profile_name> <repository_url>
  3. Repository is cloned, the profile is set to <profile_name> with the SSH Key configured.