この記事は過去のエラー解決メモを整理したものです。
現在の推奨手順とは異なる可能性があります。
公式ドキュメントを確認して最新情報と差分がないかを確認してください。
事象
git clone https://github.com/vim/vim.git実行時に下記エラーが発生する
git: 'remote-https' is not a git command. See 'git --help'.
環境
- Xserver
- Linux sv14769.xserver.jp 5.4.0-164-generic #181-Ubuntu SMP Fri Sep 1 13:41:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
原因
git-remote-httpsがビルドされていない
ls -l ~/opt/git/libexec/git-core/git-remote-https
>ls: /home/xs797670/opt/git/libexec/git-core/git-remote-https にアクセスできません: そのようなファイルやディレクトリはありません
対策
古い方のgitからgit-remote-httpsをコピーする
cp /usr/libexec/git-core/git-remote-https ~/opt/git/libexec/git-core/git-remote-https
補足
openssl->curl->gettext->gitの順にビルドして、--with-opensslにsslディレクトリを指定する方法でも解決できる
参考:
https://qiita.com/joshnn/items/244ca701c1bf9be8f350