github - How to set up git to use ssh instead of https? -


$ git remote -v

origin https://github.com/my-repo/site-web.git (fetch)

origin https://github.com/my-repo/site-web.git (push)

i have ssh set , shell script run this:

ssh -t git@github.com git reset --hard ... git pull 

but still prompted password. assume remote needs git@github.com ssh work.

i have 4 directories... a/ b/ c/ , d/ , of them point remote. want ssh work in a/. i'm happy keep using https others.

what do?

you need add .ssh/id_rsa.pub github account.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -