0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

git clone で 'remote-https' is not a git command が発生する

0
Posted at

この記事は過去のエラー解決メモを整理したものです。
現在の推奨手順とは異なる可能性があります。
公式ドキュメントを確認して最新情報と差分がないかを確認してください。

事象

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

参考情報

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?