Using Github for Windows to work with own private Git through SSH

前端 未结 4 642
轮回少年
轮回少年 2021-01-30 23:43

Right now, I\'m using msysgit to work with my own private repositories stored on a ec2 Amazon Cloud Server using SSH.

Until now, I\'ve been able to successfully connect

4条回答
  •  感动是毒
    2021-01-31 00:33

    Late answer but this is how I did it for using Gitlab.com through SSH on Github for windows.

    1. Add your public ssh key from github_rsa.pub (which is found in your .ssh folder) to your SSH keys on Gitlab.com
    2. Add a config file to your .ssh folder that looks like this

      Host gitlab.com
      RSAAuthentication yes
      IdentityFile ~/.ssh/github_rsa
      User mygitlabloginemail
      
    3. Clone / pull your repository through Git Bash

    4. Drag the folder to Github For Windows

    And thats it, you can now use Github for Windows with your gitlab repository.

提交回复
热议问题