Skip to content

Instantly share code, notes, and snippets.

@motaher13
Last active March 20, 2023 06:13
Show Gist options
  • Save motaher13/6e952b2b96a915f9fb134599a7f7f556 to your computer and use it in GitHub Desktop.
Save motaher13/6e952b2b96a915f9fb134599a7f7f556 to your computer and use it in GitHub Desktop.
1. resource: https://gist.github.com/Jonalogy/54091c98946cfe4f8cdab2bea79430f9
2. register your ssh key to all git accounts
3. Edit ~./ssh/config file
#personal
Host github.com
Hostname ssh.github.com
Port 443
#git shipday
Host github.com-motaher-s13
HostName ssh.github.com
Port 443
4. for only personal repos, update the repo config file
go to-> git config --local -e
replace ->
[remote "origin"]
url = git@github.com-motaher13:motaher13/Solved-OJ-problems.git
fetch = +refs/heads/*:refs/remotes/origin/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment