Trust
Trust

Subscribe to Sukey

Subscribe to Sukey
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
Create ssh for github account:
ssh-keygen -t rsa -b 4096 -C "account@example.com"
Add account into ~/.ssh/config
Clone repo
git clone git@github-first:username/repository.git
Config github account:
git config user.name "Your Name for Account"
git config user.email "account@example.com"
Check git ssh configuration whether it matches to ssh key:
echo $GIT_SSH_COMMAND
If needed, change repo to SSH URL:
git remote set-url origin git@github.com:xxx/xxxx.git
Create ssh for github account:
ssh-keygen -t rsa -b 4096 -C "account@example.com"
Add account into ~/.ssh/config
Clone repo
git clone git@github-first:username/repository.git
Config github account:
git config user.name "Your Name for Account"
git config user.email "account@example.com"
Check git ssh configuration whether it matches to ssh key:
echo $GIT_SSH_COMMAND
If needed, change repo to SSH URL:
git remote set-url origin git@github.com:xxx/xxxx.git
No activity yet