Answers for "git change user for push ssh"

7

change remote to use ssh git command

git remote add origin [email protected]:nikhilbhardwaj/abc.git
Posted by: Guest on June-29-2020
0

git change ssh key

git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null"
git pull
git push

# Other way
edit .git/config file like:

[core]
	sshCommand = ssh -i ~/.ssh/id_rsa_example -F /dev/null
Posted by: Guest on January-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language