In the last month, my office migrate the Repositories from Gitlab to Github. I try to write this article for sharing and as my documentation.
Disclaimer : I have account in Github before and I use mac Terminal
For the first step, I am install Github via Terminal.
brew install gh
wait the process install until see the finished installation.
Second step, authenticated with Github Account.
gh auth login
follow the instruction until authenticate with Github Account
Third step, create
ssh-keygen to set to Github Account so we can clone the repo.
The file will create in folder
/Users/yourname/.ssh/. From this step will be generate 2 file
Copy text file from
id_rsa.pub with command
pbcopy < ~/.ssh/id_rsa.pub
Paste text info your account Github.
After following all step, in the last step. I just clone the repo with command
git clone <repo link>
But, if you doing this in new computer which is the github/gitlab account didn't setting before. Check with
sss -T email@example.com