15
13

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 for Windows アップデート

Last updated at Posted at 2023-08-04

はじめに

業務や個別の作業のため、Windows環境でGitを使っていますが、Gitをインストールはしたけど、アップデートした記憶がなかったので、今回、「Git for Windows」をアップデートしました。

Git for Windows アップデート手順

① Git Bash、コマンドプロンプト、PowerShellのいずれかを実行します。
② 以下のコマンドを入力して実行して、アップデートを開始します。

$ git update-git-for-windows

③ 最新版のGit for Windowsをインストールするか聞かれます。
「y」を入れて、最新バージョンのダウンロード・インストールを開始します。
2.png
2-2.png
④ アップデートが完了されたら、Gitのバージョンを確認します。
4.png

その他

アンチウィルスソフトによるアップデート失敗

「git update-git-for-windows」コマンドを実行すると、

curl: (60) SSL certificate problem: unable to get local issuer certificate

または

curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) 

などのエラーが発生したことがありました。
これは、アンチウィルスソフトウェアのため、アップデート処理がブロックされたことが原因でした。
アンチウィルスソフトの保護を一時停止し、「git update-git-for-windows」コマンドを実行すると、正常にアップデートできました。

2.45.2バージョンのバグによるアップデート失敗

2.45.2バージョンからアップデートする時、以下のようなエラーが発生したことがありました。

curl: (43) A libcurl function was given a bad argument

調べてみたら、アップデートのコードのバグのせいでアップデート失敗が発生するようでした。
2.46.0バージョンで、このバグは修正されたが、手動で最新バージョンをダウンロードし、インストールしてGitをアップデートするしかないようです。

15
13
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
15
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?