Skip to content

Instantly share code, notes, and snippets.

@shotaK
Last active April 30, 2021 09:51
Show Gist options
  • Save shotaK/ed53f565fed0655f65fd14ecd456b336 to your computer and use it in GitHub Desktop.
Save shotaK/ed53f565fed0655f65fd14ecd456b336 to your computer and use it in GitHub Desktop.
1) Edit: ~/.ssh/config
2) Add:
Host gitlab.com-companyName
HostName gitlab.com
User user@email.com
IdentityFile ~/.ssh/id_ed25519_companyName
3) Clone the repo:
git clone git@gitlab.com-companyName:companyName/repoName.git
4) (Optional) Existed remote
git remote set-url origin git@gitlab.com-companyName:companyName/repoName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment