问题描述
使用 VScode 很长时间了,5月更新之后,当我尝试添加一个文件时频繁出现问题。
git fatal error: file is outside directory
如图:
– 翻译:
错误:“xxx.c” 在存储库外部
已经检查了设置,没有什么奇怪的,而且当我使用终端的命令添加文件,它也可以正常工作。
版本
- VSCODE
1.46.1 (user setup)
Date: 2020-06-17T21:13:20.174Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363 - GIT
2.8.1.windows.1
解决方案
更新 git 为最新版本