使用Github for Windows通过SSH使用自己的私有Git

Hit*_*kun 17 windows git ssh github github-for-windows

现在,我正在使用msysgit与使用SSH存储在ec2 Amazon Cloud Server上的我自己的私有存储库一起工作.

到目前为止,我已经能够通过Git Bash成功连接到这些存储库(使用ssh-keygen创建ssh-rsa公钥和私钥,将公钥添加到远程计算机上的authorized_servers),所以我可以克隆,推,拉,通过CLI.

现在,我见过Github for Windows,我得说,这是一个很棒的软件.由于它基于msysgit,我想知道如果有可能设置Github for Windows连接,克隆和推送通过UI提交?

在描述中看起来很可能,但文档似乎缺乏有关软件能够执行的操作的信息.

希望你能在这里帮助我,来自墨西哥的欢呼.

Esw*_*ala 13

以下是您正在寻找的内容.

编辑:我刚刚测试了以下步骤,它的功能就像魅力!!

   1. Click on repositories on the left.
   2. Pull your copy of the repo from the remote , using git-shell
   3. Drag and drop the Folder on to Git hub for windows dashboard.
   4. now double click on the repository dropped on to githubW. It should be listed as a local repository.
   5. it says login required to your non-github remote!
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

积分

出于一些奇怪的原因,GutHub并没有直接使用非GitHub遥控器.(正如你所说,他们说他们支持非github遥控器虽然!!)

  • 当我按照这些步骤操作时,我没有收到输入用户名和密码的提示,因此无法同步.有关如何提示输入密码和用户名的任何建议吗? (3认同)

Deb*_*Deb 5

迟到的答案,但这就是我在Github上通过SSH使用Gitlab.com for windows的方法.

  1. 将您的公共ssh密钥从github_rsa.pub(位于.ssh文件夹中)添加到Gitlab.com上的SSH密钥
  2. config文件添加到.ssh文件夹中,如下所示

    Host gitlab.com
    RSAAuthentication yes
    IdentityFile ~/.ssh/github_rsa
    User mygitlabloginemail
    
    Run Code Online (Sandbox Code Playgroud)
  3. 通过Git Bash克隆/拉取您的存储库

  4. 将文件夹拖到Github For Windows

就是这样,您现在可以使用Gitub for Windows和gitlab存储库.