# 运行git add .后出现如下报错 warning: adding embedded git repository:xxxxxxxxxx hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it. hint: If you meant to add a submodule, use: hint: hint: git submodule add <url>xxxxxxxxxx hint: hint: If you added this path by mistake, you can remove it from the hint: index with: hint: hint: git rm --cached xxxx hint: hint: See "git help submodule" for more information.
#配置完butterfly主题,在将本地博客文件push到github上后,显示如下错误: /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:84:in `rescue in gemspec': The butterfly theme could not be found. (Jekyll::Errors::MissingDependencyException) from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:81:in `gemspec' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in `root' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:in `initialize' ...... /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'butterfly' (>= 0) among 148 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/github/home/.gem/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle', execute `gem env` for more information from /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec' from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:986:in `find_by_name' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:82:in `gemspec' ...... Logging at level: debug Configuration file: /github/workspace/./_config.yml Theme: butterfly github-pages 227 | Error: The butterfly theme could not be found.
1 2
原因:尚未清楚出现这个报错的原因。 由于这一步出现在github page build and deploy,因此初步判断是,github无法根据仓库内容构建和部署github page导致的正常报错,而我没有将网站部署在github page的想法,对于后续Netlify网站的部署也没有任何影响,因此目前对这个报错可以忽略不管。
Uncaught TypeError: Cannot read properties of null (reading 'offsetTop') at Object.getEleTop (utils.js:208:25) at HTMLDivElement.<anonymous> (main.js:369:30)