1. 程式人生 > >git 錯誤: Unable to find remote helper for 'https'解決方法

git 錯誤: Unable to find remote helper for 'https'解決方法

問題描述

git 錯誤: Unable to find remote helper for 'https'

今天知道問題的原因了,是因為 /usr/libexec/git-core/ 路徑沒在 PATH 環境變數中。

我們檢視一下:

$ ls /usr/libexec/git-core/
git                    git-http-backend         git-receive-pack
git-add                git-http-fetch           git-reflog
git-add--interactive   git-http-push            git-relink
git-am                 git-imap-send            git-remote
git-annotate           git-index-pack           git-remote-ftp
git-apply              git-init                 git-remote-ftps
git-archive            git-init-db              git-remote-http
git-bisect             git-instaweb             git-remote-https
git-bisect--helper     git-log                  git-repack
git-blame              git-lost-found           git-replace
git-branch             git-ls-files             git-repo-config
git-bundle             git-ls-remote            git-request-pull
git-cat-file           git-ls-tree              git-rerere
git-check-attr         git-mailinfo             git-reset
git-checkout           git-mailsplit            git-revert
git-checkout-index     git-merge                git-rev-list
git-check-ref-format   git-merge-base           git-rev-parse
git-cherry             git-merge-file           git-rm
git-cherry-pick        git-merge-index          git-send-pack
git-clean              git-merge-octopus        git-shell
git-clone              git-merge-one-file       git-shortlog
git-commit             git-merge-ours           git-show
git-commit-tree        git-merge-recursive      git-show-branch
git-config             git-merge-resolve        git-show-index
git-count-objects      git-merge-subtree        git-show-ref
git-describe           git-mergetool            git-sh-setup
git-diff               git-mergetool--lib       git-stage
git-diff-files         git-merge-tree           git-stash
git-diff-index         git-mktag                git-status
git-difftool           git-mktree               git-stripspace
git-difftool--helper   git-mv                   git-submodule
git-diff-tree          git-name-rev             git-symbolic-ref
git-fast-export        git-notes                git-tag
git-fast-import        git-pack-objects         git-tar-tree
git-fetch              git-pack-redundant       git-unpack-file
git-fetch-pack         git-pack-refs            git-unpack-objects
git-filter-branch      git-parse-remote         git-update-index
git-fmt-merge-msg      git-patch-id             git-update-ref
git-for-each-ref       git-peek-remote          git-update-server-info
git-format-patch       git-prune                git-upload-archive
git-fsck               git-prune-packed         git-upload-pack
git-fsck-objects       git-pull                 git-var
git-gc                 git-push                 git-verify-pack
git-get-tar-commit-id  git-quiltimport          git-verify-tag
git-grep               git-read-tree            git-web--browse
git-hash-object        git-rebase               git-whatchanged
git-help               git-rebase--interactive  git-write-tree

這導致裡面的 git-remote-https, git-remote-http 這些得不到執行。所以 git 所表現出來的功能不全。

解決辦法

將 /usr/libexec/git-core 納入 PATH,至少在使用 git 之前,設定一下PATH。

$ PATH=$PATH:/usr/libexec/git-core

或直接在 /etc/profile 中修改。

相關推薦

git 錯誤: Unable to find remote helper for 'https'解決方法

問題描述 git 錯誤: Unable to find remote helper for 'https' 今天知道問題的原因了,是因為 /usr/libexec/git-core/ 路徑沒在 PATH 環境變數中。 我們檢視一下: $ ls /usr/lib

Git出現fatal: Unable to find remote helper for 'https'

    使用Git遠端獲取程式碼 git clone https://github.com/twlkyao/findfile.git     出現“fatal: Unable to find re

糾錯: git push error “fatal: Unable to find remote helper for 'https'"

When I upload my local code to Github, I meet the problem of “git push error “fatal: Unable to find remote helper for ‘https’”“.

Git出現fatal: Unable to find remote helper for 'https'

tools yourself title https self doc ref pri 安裝 使用Git遠程獲取代碼 [plain] view plain copy print? git clone https://github.com/twlkyao/f

Unable to find remote helper for 'https'

情況 hub 沒有 目前 root one height copyto spa 出現這個報錯,說明git目前的狀態是正常的,要麽沒裝好,要麽自己解決壓縮安裝導致沒有權限 第三次情況是,使用yum install git 重新安裝後,仍然報錯,是因為環境變量中GIT_HOM

fatal: Unable to find remote helper for 'https'

sta boot eve devel curl git conf tps 報錯 如果出現這樣clone報錯的,可能是未安裝curl-devel。 依次執行安裝命令,並重新編譯git yum install curl-devel cd /home/tools/git-2.9.

Python3.4出現unable to find vcvarsall.bat的簡單解決方法

安裝wordcloud的時候,出現報錯,unable to find vcvarsall.bat。研究了好久,發現下面方法可行。 找到安裝目錄下的某個資料夾。 例如我的:F:\Python34\Lib\distutils 找到msvc9compiler.py 開啟搜尋vc_

pod lib lint 報錯 Unable to find a specification for `AMap2DMap` depended upon by `DingtalkPod

logs ios ring ida lean tps erro git err 執行 pod驗證 報錯如下 ? DingtalkPod git:(2.0.0) ? pod lib lint --sources=‘https://github.com/AloneMonkey

錯誤 Unable to find vcvarsall.bat 的終極無敵最完美的解決辦法

.bat vc++ 計算 解釋 計算器 bat window win7 mnt Windows 上通過 pip 安裝 python 包,經常會出現這種錯誤。 如:pip install pyodbc。 這種錯誤的簡單明了解釋就是:python 編譯器找不到計算機上面的

file_get_contents()獲取https出現這個錯誤Unable to find the wrapper “https” – did

AC ans html 解決 itl follow htm erer -c file_get_contents()獲取https出現這個錯誤Unable to find the wrapper “https” – did 解決辦法一,如果你是用的服務器,可以參考這個辦法

git錯誤:unable to auto-detect email address

idea 用git更新的時候報錯,詳細錯誤資訊如下: Tried to save uncommitted changes in stash before Update, but failed with an error. stash file://D:/Workspace for idea/MY

解決Unable to find taglib [cr] for URI: [WBE-INF/tlds/testlib.tld]] with root cause的可能性方案

最近在學習自定義JSP標籤,按照網上的例程敲了一下發現出現500錯誤,錯誤資訊Unable to find taglib [cr] for URI: [WBE-INF/tlds/testlib.tld

【問題處理】CocoaPods, Unable to find a specification for `XXXXXX`

問題描述 [!] Unable to find a specification for `SAMKeychain (~> 1.5.2)` [!] Smart quotes were detected and ignored in your Podfile. To a

git 使用報錯: fatal: Couldn't find remote ref master的解決方法

fatal: Couldn't find remote ref master 翻譯過來就是:致命的:無法找到遠端參考主,也就是報錯的意思。錯誤的提示內容意思是找不到需要連線的物件。 解決方法有以下幾種: 0.如果是新建的倉庫( repositories )的話在pull程式碼的時候,出

Unable to find the ncurses libraries的解決辦法

我們在更新CentOS或者Ubuntu的核心時,執行make menuconfig可能看如這樣的錯誤: *** Unable to find the ncurses libraries or the *** required header files. *** ‘make menuconfig’ requi

jxl.read.biff.BiffException: Unable to recognize OLE stream原因及解決方法

今天建立了一個專案,計劃從一堆excel批量匯入資料的程式。但是發生了異常,jxl.read.biff.BiffException: Unable to recognize OLE stream。 原因有二:  1. jxl包只支援excel03版,檔案可能是07版本,可利用巨集指

ios編譯ffmpeg出現xcrun -sdk iphoneos clang is unable to create an executable file的解決方法

使用https://github.com/kewlbear/FFmpeg-iOS-build-script的指令碼一鍵編譯ffmpeg。 出現 building arm64... xcrun -sdk iphoneos clang is unable to create an executa

ORA-27125: unable to create shared memory segment的解決方法

在某些作業系統上,當啟動資料庫或者建立資料庫時都可能出現ORA-27125錯誤,我在Oracle Linux 6上安裝Oracle 10.2.0.1,建立資料庫時就遇到了這個錯誤。 這個錯誤的解決就是修改 /proc/sys/vm/hugetlb_shm_group 檔案。 以下是老楊提到過的一

Unable to read the project file ... 簡單解決方法

原來好好的solution, 在硬碟上移動了下位置後就每次開啟都出現unable to read the project file ...的錯誤 如果remove the web project from solution and then add it again, it

HierarchyViewer報Unable to get view server protocol的解決方法

檢驗一臺裝置(手機或模擬器)是否開啟了View Server的辦法為: 首先進入adb,輸入adb devices確保裝置正常連線。 如果連線不正確應該重啟下adb service 確保裝置連線正常後,輸入 adb shell service call windo