-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
仓库根目录 .gitignore 文件中的嵌套 exclusion 规则无效 #413
Comments
for now, the exist commands in |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This was referenced Mar 6, 2019
Closed
15 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree and want to create new issue
Expected behavior
根据
/.gitignore
中的嵌套排除规则,以及推测的意图!source/lib/font-awesome/*
!source/lib/ua-parser-js/dist/
执行以下操作应能被 Git 探测:
touch source/lib/font-awesome/dirty
touch source/lib/ua-parser-js/dist/dirty
Actual behavior
并不能,具体输出详见 Other Information 部分。
初步影响在于,若将源文件
push
后再clone
至其他环境重新编辑,上述目录将被忽略,进而在部署时无法被复制至public
目录中。至于从该项目直接
clone
至本地不受影响,可能的原因是在增加这些规则前,上述目录已经被索引,没有进一步处理。Steps to reproduce the behavior
git clone git@github.com:theme-next/hexo-theme-next.git
cd hexo-theme-next/
touch source/lib/font-awesome/dirty
touch source/lib/ua-parser-js/dist/dirty
git status
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
irrelevant
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
irrelevant
Other Information
对于
source/lib/font-awesome
部分,执行touch source/lib/font-awesome/dirty
后,对于以下原有规则,
执行
git status
,输出如下:修改为如下规则后,
再次执行
git status
,输出如下:嵌套的排除规则有些麻烦,以上供参考。
The text was updated successfully, but these errors were encountered: