1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git bash で予測変換が邪魔をするとき

Posted at

■問題点
git bash を使っていて、
「develop」ブランチに切り替える時、「git checkout de」でTabキーを押すと「git checkout develop」まで予測変換してくれる。

「dev-2」というブランチを適当に作ってしまい、そのブランチはマージ後削除(リモート/ローカルともに)。
しかし、削除したのにも関わらず、予測変換には相変わらず出てきてしまい、予測変換の邪魔をする。地味にイラッとする。
image.png

■解決策
「.git\refs\remotes\origin」内に、ブランチ名のファイルがある。
そのファイルを削除すると、予測変換からいなくなる。
image.png

※「.git\logs\refs\remotes\origin」内にあるファイルも消す必要があるかも
image.png

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?