请注意以下结构:
/assets --> this dir shouldn't be ignored. but SOME OF their contents SHOULD.;
ignoredfile.jpg --> should be ignored.
ignoredfile2.gif --> --> should be ignored.
/blog --> this dir shouldn't be ignored. but SOME OF their contents SHOULD.;
/images --> this dir shouldn't be ignored. but ALL their contents SHOULD.;
在/assets
文件夹里面我有一个 gitignore 文件:
# Ignore everything in this directory
*
# Except this file
!.gitignore
!/images
!/resize
!/blog
在 '/assets/blog' 我有另一个.gitignore
.
# Ignore everything in this directory
*
# Except those files
!.gitignore
!/images
问题
当我推送到远程服务器时,git DO 推送了/blog
目录但不是那个目录/blog/images
。为什么 ?
我该如何解决这个问题?