Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git push asking for username after setting up ssh key

Caused by remote being set to HTTPS rather than SSH
check with: git remote -v
	git@github should be present for ssh
    https://github.com should be present for HTTPS
    
to change to ssh: git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
to change to https: git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #push #username #setting #ssh #key
ADD COMMENT
Topic
Name
9+8 =