我添加了远程来源,例如:
git remote add origin https://github.com/username/repo.git
当我推送 git 存储库时,我收到此错误:
git push -u origin master
fatal: Unable to find remote helper for 'https'
我在 Ubuntu 10.04.4 LTS 上使用 git 1.7.1
任何想法,非常感谢
我添加了远程来源,例如:
git remote add origin https://github.com/username/repo.git
当我推送 git 存储库时,我收到此错误:
git push -u origin master
fatal: Unable to find remote helper for 'https'
我在 Ubuntu 10.04.4 LTS 上使用 git 1.7.1
任何想法,非常感谢
如果您从源代码编译 git,请务必先安装此包:
apt-get install libcurl4-openssl-dev
我昨天刚遇到问题,今天解决了,所以发帖以防万一这可能对 Windows 用户有所帮助。对我来说,问题是在我更新到最新版本的 Git 之后发生的(因为 Visual Studio 建议我这样做——一些事情不匹配。)
原来我安装在默认目录 Program Files 中,但我的旧 Git 在 Program Files (x86) 中。(直到尝试重新安装才注意到。)
卸载新版本并安装其他 Git for Windows 下载(这不是默认设置)下列出的 64 位 Git for Windows 安装程序覆盖了 Program Files (x86) 中的版本。(我首先尝试了版本和文件夹的其他组合。)
在执行 git push origin master 之前,我确实必须删除已经创建的本地存储库并使用 git init、git add .、git commit -m "first commit"、git remote add origin theGitUrl (所有这些都工作过)重新启动。奇怪的是,出现了一个弹出窗口,输入我的用户名和密码。一开始没注意,还以为git push上的处理挂了。因此,请注意那个“其他适用于 Windows 的 Git”版本。
我确实在修复之前更改了我的环境变量;我不知道这是否有帮助。我将这两个添加到 PATH:C:\Program Files (x86)\Git\bin C:\Program Files (x86)\Git\libexec\git-core 我对用户和系统变量都这样做了。
关于在 Windows 10 中更新 PATH 的注意事项:您必须一次添加一个,并且不包括 ;
经过大量搜索,答案是您需要 git 版本 1.7.7
我在 chroot 监狱里工作,以为我已经复制了 git 工作所需的所有内容,但我自己丢失了 git-core 文件,所以我只需要复制它们:
cp -r /usr/lib/git-core /opt/chroot/myjail/usr/lib/
Add this to git config: (Checked in centos 6.7 and working)
#git config --global url.https://.insteadOf git://
#To see the config added
#git config --list
url.https://.insteadof=git://
user.name=username
user.email=youremail
....