Created
June 24, 2019 18:54
-
-
Save jcunanan05/ba753c09cc20bfa6d3433a3ffd343fd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable git push ssh on multiple repos | |
# delete cached | |
ssh-add -D | |
#1. go to your ~/.ssh | |
#2. open your favorite local editor | |
code ~/.ssh | |
# 3. add new ssh pub key | |
ssh-keygen -t rsa -b 4096 -C "my_work_email@my_company.com" | |
# 4. make your a ~/.ssh/config file and follow the example below | |
# in your repo, git config add your local user name and password | |
git config user.name "jcunanan05" | |
git config user.email "[email protected]" | |
# push/add the remote in your repo | |
git remote add [email protected]:jcunanan05/my-repo.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more info
go to this link https://gist.github.com/developius/c81f021eb5c5916013dc
sample
~/.ssh/config
file