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 [email protected]
IdentityFile ~/.ssh/id_ed25519_companyName
3) Clone the repo:
git clone [email protected]:companyName/repoName.git
4) (Optional) Existed remote
git remote set-url origin [email protected]:companyName/repoName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment