简体   繁体   中英

VSCode ignores my /android folder in react-native project

I have an ejected expo app which includes ios & android folder now.

ios folder is uploaded to GIT but my /android will be ignored and greyed out in vscode.

My .gitignore just includes the following lines:

node_modules/**/*
.expo/*
npm-debug.*

在此处输入图片说明

I cannot see any settings where I can reproduce this behavior. :(

Many thanks for any suggestions!

Ok, I've found the issue. There was a wrong global gitignore configuration.

Steps to fix the issue.

  1. $ open ~/.gitconfig
  2. find path of .gitignore_global here:

[core] excludesfile = /Users//.gitignore_global

  1. $ open /Users/<username>/.gitignore_global

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM