mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403
git config --local credential.useHttpPath true
git remote set-url origin https://USERNAME@github.com/USERNAME/REPONAME.git
mkdir .ssh # 없을 시
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f my-ssh-keys.pem
vim ~/.ssh/config
# Default Config - Work profile
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
# Secondary Config - Personal profile
Host github.com-office
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_office
# Using default work profile
git@github.com:ho4607/my-first-project.git
# Using Secondary work profile
git@github.com-office:seongho-park-office/private-office-project.git
git config --global user.name
#output : global username
git config --global user.email
#output : global userEmail
git config user.name
#output : username
git config user.email
#output : userEmail
git config --local user.name "유저이름"
git config --local user.email "유저이메일"
remote: Permission to @@@@@/@@@@@@.git denied to <기존사용계정>.
fatal: unable to access '깃주소': The requested URL returned error: 403