LoginSignup
0
0

More than 1 year has passed since last update.

Gitコマンドでrbenv version ruby-2.7.4' is not installedtというエラーが出る

Posted at

はじめに

この記事は2022年4月にまとめていた「細かいつまずいたことをメモしておく(4月編)をそれぞれ投稿した内容になります
解決方法が最新でない可能性もありますのでご了承ください

問題

Gitコマンドを叩くと以下のエラーが出るようになってしまった

rbenv version ruby-2.7.4' is not installed

またブランチを変更してもでてしまう

解決方法

これはovercommitをインストールしたことに起因していた
overcommitは.gitのホックに直接設定を書き込むためにブランチを変更してもその設定は引き継がれている
そのためブランチを変更してovercommitがはいっていない状態にしても動いてしまうのでエラーが発生する

overcommitを追加したブランチを早くマージする必要がありました

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