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 - Unable to make sub reports with Jasper -

Save and close a word document by giving a name in R -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -