-
Notifications
You must be signed in to change notification settings - Fork 418
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
Suggestion To Clean Up Contents In .gitignore File #31
Comments
@zhongxiang117 About
No |
global-gitignore is not recommends |
Keep update the theme, github pages use remote_theme and local use ruby gem Blow option for remote-theme method compress css! sass:
style: compressed |
You may misunderstand what I am saying. Let we think a scenario, suppose a new user wants to use this theme to support his/her blog or to release documents. As usual, s/he needs to Fork or Download this theme first, in either way, s/he has the default And probably, s/he may be not aware those It has great possible that s/he may need to pre-check their contents before they really online-git-publishing. It works well in their However, if it exists a file happening to match git-ignore rules, then what will happen in next? Those ignored files will not be published to their online git repository. Therefore, it will cause differences between the local repository and remote git repository. This is the Potential Issue that I am talking about. It is not about how do you set your own This package is not a one time build-to-use package, the user needs to constantly make relations between their And I guess it also is the reason that that you removed The So, I still strongly suggest to remove all contents in offical package |
Reason
This package is used for website generating, every bite inside its directory matters, if user wants to
exclude
some files, they can have their own way to set those exclusions before they start building, say, inside_config.yml
file, so it is unnesscary to help user pre-set those ignores, especially when those settings may causegit
file transferring problems.Potential Problem
Inside current
.gitignore
file, it has the entries likeHowever, it has the great possibilities that user will happen to have some source files with the same file extensions that git ignores, then it will make differences between
local
&github-pages
compiling, when no attention paid to.gitignore
s.And I highly suspect that it may be the same reason that you removed entry
*.html
in early version's, because you are having_include/extra/footer.html
&_include/extra/head.html
files.My Personal Complaining
Well, this can also be an example to show what I have struggled for.
I have two different and separated reporsitories for this package, they contain:
Like above shows, every time whenever I committed changes of the package core codes, my
github.io
always complained someliquid
files were missing, it cannot work as I expected in my local building. As a result, it took me more than two hours to find the reasons.Reason: because of the
*.html
settings, thegit
simply skipped the full_include/extra
folder when makes comparisons.With the help of local
.gitignore
file, it will be very convenient to make commits to rundocs git official reporisitory, however, it is highly possible that the user may have any files happen to match any one of entry in default .gitignore settings, thus as a consequence, it will ruingithub.io
page renderings.Alternative Solutions To
git-ignore
sYou can set those settings as the global ignores when you are doing developments, like in
~/.gitignore
or~/.config/git/ignore
or~/.gitignore_global
.Link: global-gitignore
Once again, this package is not a one time build-to-use package, it dynamically updates whenever the server starts running.
As a conclusion, please clean up the contents inside
.gitignore
file, thank you!The text was updated successfully, but these errors were encountered: