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
Post a Comment