我有这样的文件夹结构:
MASTER
|
------
| |
A B
我只想忽略A内的一个文件,也要忽略B内除一个文件夹之外的所有内容。
我设法在gitignore中编写了这段代码:
!b/
b/*
b/wp-content/
b/wp-content/*
!b/wp-content/plugins/
b/wp-content/plugins/*
!b/wp-content/lexo_advisors/
!b/wp-content/themes/
b/wp-content/themes/*
!b/wp-content/themes/bridge-child
b/wp-content/themes/bridge-child/globals.php
a/assets/inc/codes.php
*.DS_Store
a/.DS_Store
b/.DS_Store
我不确定我在做什么错。有人可以帮忙吗?
亲切的问候