LoginSignup
1
0

More than 5 years have passed since last update.

Windows-Cygwin Gitリポジトリがコマンドプロンプトから操作できなくなる現象に遭遇

Posted at

現象

Cygwinから利用しているローカルGitリポジトリについて、CMDなどWindows側から操作しようとすると、以下のようなエラーメッセージが表示されでGitリポジトリが操作不能になる。

D:\repos\myProject>git --version
git version 2.14.3.windows.1

D:\repos\myProject>git status
fatal: Invalid path '/cygdrive': No such file or directory

対応

.git/confに書かれている以下の行を削除する

[Core]
   worktree = /cygdrive/d/repos/myProject
1
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
1
0