android - VSCode 在 react-native 项目中忽略了我的 /android 文件夹
问题描述
我现在有一个弹出的 expo 应用程序,其中包括 ios 和 android 文件夹。
ios
文件夹已上传到 GIT,但我/android
将在 vscode 中被忽略并显示为灰色。
我的.gitignore
只是包括以下几行:
node_modules/**/*
.expo/*
npm-debug.*
我看不到任何可以重现此行为的设置。:(
非常感谢您的任何建议!
解决方案
好的,我找到了问题所在。全局 gitignore 配置错误。
解决问题的步骤。
$ open ~/.gitconfig
- 在这里找到 .gitignore_global 的路径:
[核心] excludesfile = /Users//.gitignore_global
$ open /Users/<username>/.gitignore_global
推荐阅读
- android - 使用 RecyclerView、PagedListAdater 和 Room 时如何滚动到底部?
- c# - 在 C# 中从模板自动生成的代码
- node.js - 如何从 docker 安装 git 和 gatsby
- python - 在地图上可视化饼图
- html - 为什么我的轮播按钮之间没有空间?
- typescript - 在 typescript 库中使用未知类型是否会强制所有依赖项使用 typescript 3.0 版或更高版本?
- javascript - 使用航点滚动动画
- jenkins - 有没有办法直接在 Jenkins 管道中将“身份验证令牌”存储到“远程触发器构建”?
- vagrant - vagrant 的更改需要删除 VirtualBox 中的已保存状态
- python - 使用 PID 强制杀死当前程序的 Python 程序