无法查找git(不支持servname)

时间:2015-07-05 00:41:37

标签: git vim

运行centos 7,vim Plug Installer,我遇到了git的克隆问题:

:PlugInstall
  1 Updated. Elapsed time: 1.226362 sec.
  2 [===x==x===xx===x=xx=x===x=x=xxxxxx=xx]
  3
  4 - Finishing ... Done!
  5 - vim-slim: Already installed
  6 - vim-github-dashboard: Already installed
  7 - monokai: Already installed
  8 - fzf: Already installed
  9 - vim-json: Already installed
 10 - gocode: Already installed
 11 x delimitMate
 12     fatal: Unable to look up git (port :@github.com) (Servname not supported for ai_socktype)
 13     Cloning into '/root/.vim/plugged/delimitMate'...

git clone git@github.com:Raimondi/delimitMate.git工作正常,https端点 -

也是如此

怀疑dns,使用nslookup返回以下内容:

› nslookup github.com
Server:     8.8.8.8
Address:    8.8.8.8#53

Non-authoritative answer:
Name:   github.com
Address: 192.30.252.130

为什么赢得插件回购?

2 个答案:

答案 0 :(得分:2)

  

https效果很好

在终端中,但没有插头。根据{{​​3}},您应该使用g:plug_url_format网址,或者,如果您坚持使用SSH网址,请将git@github.com:%s.git设置为{{1}}。

答案 1 :(得分:0)

如果PlugInstall使用ssh执行git clone命令为rot,这意味着它将在--stylesheet-path中查找ssh密钥(或ssh配置文件)。

这与您的帐户不同,后者应包含Sub DeleteEmpty() Dim ws As Excel.Worksheet Set ws = ActiveSheet ' change this as is appropriate Dim sourceRange As Excel.Range Set sourceRange = ws.Range("d13:d40") Dim cmnt As Excel.Comment Set cmnt = sourceRange.Cells(1, 1).Comment If Not cmnt Is Nothing Then If cmnt.Text = "Deleted" Then If MsgBox("Do you wish to continue with delete?", vbYesNo, "Already deleted!") = vbNo Then Exit Sub End If End If End If Dim deletedThese As Excel.Range On Error Resume Next ' the next line will throw an error if no blanks cells found ' hence the 'Resume Next' Set deletedThese = sourceRange.SpecialCells(xlCellTypeBlanks) On Error GoTo 0 If Not deletedThese Is Nothing Then deletedThese.EntireRow.Delete End If ' for preserving run state If cmnt Is Nothing Then Set cmnt = sourceRange.Cells(1, 1).AddComment cmnt.Text "Deleted" cmnt.Visible = False End Sub

中所需的所有ssh元素

确保使用您的帐户运行所有内容。