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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -