Setting up SSH keys for Bitbucket on Windows

后端 未结 7 1472
死守一世寂寞
死守一世寂寞 2021-02-05 12:35

First, I am an absolute noob with git, repos and command line. I have repo on Bitbucket and I basically want to be able to push to the repository via gitbash without entering a

7条回答
  •  深忆病人
    2021-02-05 13:16

    1) create .ssh folder under your home directory like: mkdir C:\Users\USERNAME\.ssh

    2) Copy id_rsa and id_rsa.pub into directory from previous step

    3) Close and open cmd (console window)

    4) You need to clone the repository as SSH repository, like: git clone ssh://git@bitbucket.test.com:USERNAME/repository.git

    Then it should work.

提交回复
热议问题