Answers for "git https to ssh"

9

git change origin

$ git remote -v
> origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
> origin  https://github.com/USERNAME/REPOSITORY.git (push)

Change your remote\'s URL from HTTPS to SSH with the git remote set-url command.
$ git remote set-url origin [email protected]:USERNAME/REPOSITORY.git

Verify that the remote URL has changed.
$ git remote -v
# Verify new remote URL
> origin  [email protected]:USERNAME/REPOSITORY.git (fetch)
> origin  [email protected]:USERNAME/REPOSITORY.git (push)
Posted by: Guest on August-07-2020
0

git https to ssh

git remote set-url origin [email protected]:username/repo-name-here.git
Posted by: Guest on June-13-2021
0

git use ssh instead of https

git config --global url.ssh://[email protected]/.insteadOf https://github.com/
Posted by: Guest on October-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language