cd ~/.ssh
sudo vim config
ssh-keygen -t ed25519 -C "email-cua-ban" -f ~/.ssh/cong-ty-1
ssh-keygen -t ed25519 -C "email-cua-ban" -f ~/.ssh/cong-ty-2
Host cong-ty-1.com HostName github.com User git IdentityFile ~/.ssh/cong-ty-1 Host cong-ty-2.com HostName gitlab.com User git IdentityFile ~/.ssh/cong-ty-2
pbcopy < ~/.ssh/company_account.pub
Tuỳ vào công ty sẽ lưu trữ source code ở đâu, các bạn vào phần cài đặt và add SSH key tương ứng
git clone [email protected]:cong-ty-1/repo.git
git clone [email protected]:cong-ty-2/repo.git
Last updated 4 months ago