git報錯:ssh variant 'simple' does not support setting port解決【有效】
一 背景
git 升級到 2.16.x 版本之後,在 Android Studio 上去使用 git 命令以 ssh 方式去 fetch 遠端的 branch。
二 異常現象
Android studio 報了一個異常,ssh variant 'simple' does not support setting port ,即 ssh variant 不支援埠號。
三 分析原因
使用 ssh 方式拉取程式碼的時候,使用的命令帶有埠號。而在 git 2.16.x 版本上 ssh variant 需要手動設定為 ssh。
四 解決方式
1. 在 bash 輸入 git config --global ssh.variant ssh
2. 對 git 進行降級處理,即降低 git 版本。
作者:cindychendd
連結:https://www.jianshu.com/p/901ae47bc073
來源:簡書
簡書著作權歸作者所有,任何形式的轉載都請聯絡作者獲得授
相關推薦
git報錯:ssh variant 'simple' does not support setting port解決【有效】
一 背景 git 升級到 2.16.x 版本之後,在 Android Studio 上去使用 git 命令以 ssh
git報ssh variant 'simple' does not support setting port解決辦法
setting led 解決辦法 ont support pla post cin idt 解決辦法 在git bash中輸入命令 1 git config --global ssh.variant ssh 照著來一遍,肯定解決
解決git報ssh variant 'simple' does not support setting port
解決git報ssh variant 'simple' does not support setting port 一、解決辦法:在git bash中輸入命令 git config --global ssh.variant ssh 二、解釋說明: git
git報錯:ssh: Could not resolve hostname gitlab.yto.net.cn:
現象:原因:git在拉去程式碼時找不到hostname,git路徑中[email protected]:new_yonmen/carrier.git中的域名不存在,需要配置host檔案,或者修改域名為ip解決辦法:為了方便以後的下載,建議修改host檔案,hosts
ubuntu 17.10 AndroidStudio Git遇到 “fatal: ssh variant 'simple' does not support setting port”
記錄 ubuntu系統中 AndroidStudio上傳程式碼到Git伺服器遇到的一個錯誤 :“fatal: ssh variant 'simple' does not support setting port”。 我上傳的URL: ssh://[email pr
git報錯error: src refspec refs/heads/master does not match any.
本地倉庫 打開 分享 之前 img error fsp comm 方案 $ git pusherror: src refspec refs/heads/master does not match any.error: failed to push some refs 出錯解
報錯:The declared package "com.cas" does not match the expected package "main.java.com.cas"
1 、說明 環境說明:2018eclipse + jdk1.8 + tomcat 8 經常搗騰開發環境,昨天還好好的,今天來了,突然發現 所有的類都報錯,這可如何是好,措手不及的感覺有木有0.0,
DatePicker 設定最小日期是當前時間報錯:java.lang.IllegalArgumentException: fromDate:xxx does not preced toDate: xx
fromDate: Tue Jul 04 11:42:14 EDT 2017 does not precede toDate: Tue Jul 04 11:42:14 EDT 2017 解決:設定最小
git報錯:'fatal:remote origin already exists
目錄 eas repo syn baidu for .cn com 分享 git報錯:‘fatal:remote origin already exists‘怎麽處理?附上git常用操作以及說明。 git添加遠程庫的時候有可能出現如下的錯誤, 怎麽解決? 只要兩步
Git報錯:Your branch is ahead of 'origin/master' by 1 commit
remote 倉庫 mas orm like mes reset director gin . commit之後,用git status,打印信息為: # On branch master # Your branch is ahead of ‘origin/maste
git報錯:Pull is not possible because you have unmerged files解決方法
git pull 的時候報如下錯誤程式碼: error: Pulling is not possible because you have unmerged files. 嘗試用git stash沒有作用。 Pull is not possible because you have
git 報錯:error: failed to push some refs to 'https://github.com/Anderson-An/******.git'(已解決)
提交push 報錯: $ git push origin masterTo https://github.com/Anderson-An/******.git ! [rejected] master -> master (fetch first)error: failed to push some r
git報錯:RPC failed; curl 18 transfer closed with outstanding read data remaining
具體報錯 fatal: The remote end hung up unexpectedly error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解決方法 git
git報錯: git: not authorized :未經授權解決辦法
今天拉專案的時候很順利,但是準備pull下來最新的專案的時候卻一直提示 not authorized,一直說我未經授權,剛開始不知道怎麼回事,後來看了一會,解決了,將解決的辦法記錄下來,以便以後遇到了更快的定位解決辦法。我用的是Hbuilder,當然這個是無關緊要的,一個專案
git 報錯:ERROR: missing Change-Id in commit message footer
[email protected]:~/work/SourceFile/iwds_kernel/slpt$ git push origin Counting objects: 108, done. Delta compression using up to 8
git 報錯:remote: Not Found fatal: repository 'http://xxx/xxx.git/' not found
開始安裝了git之後,使用的是同事的賬號密碼進行遠端倉庫使用演示。然後自己使用新賬號密碼,新增專案push程式碼到遠端倉庫,發現在pull的時候一直報錯,git命令提示remote: Not Found fatal: repository 'http://xxx/xx
Git報錯:Updates were rejected because the tip of your current branch is behind
使用git的過程中有時候會出現無法push的問題,報錯如下圖: 這是由於遠端repository和我本地的repository衝突造成,通常發生在多人協作的開發過程中 解決方法: 1.使用強制push的方法: git push -u origin
git報錯:fatal: remote origin already exists
如果輸入$ ssh -T [email protected] 出現錯誤提示:Permission denied (publickey).因為新生成的key不能加入ssh就會導致連線不上github。 解決辦法如下: 1、先輸入$ ssh-agent,再輸入$ ssh-add
Git報錯:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
SSLroutines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 當從Github遠端倉庫進行git clone或者向Github遠端倉庫git push的時候,會報錯: 原因: 在 201
git報錯:Please move or remove them before you can switch branches.
error: Your local changes to the following files would be overwritten by checkout: . . .省略中間部分 . Plea