I get the above error when running bundle exec jekyll serve against a my project. The full details of the error are included below after I have switched on verbose.
My colleague can run the command bundle exec jekyll serve against this project successfully, but I always get this error.
C:\RepoGitHub\FHIR-A2SI-APPOINTMENTS-API>bundle exec jekyll serve --verbose --incremental
Logging at level: debug
Configuration file: C:/RepoGitHub/FHIR-A2SI-APPOINTMENTS-API/_config.yml
Logging at level: debug
GitHub Pages: github-pages v191
GitHub Pages: jekyll v3.7.3
Requiring: jekyll-github-metadata
Dotenv not found. Skipping
Requiring: jekyll-seo-tag
Requiring: jekyll-github-metadata
Requiring: jekyll-mentions
Requiring: jemoji
Requiring: jekyll-redirect-from
Requiring: jekyll-seo-tag
Requiring: jekyll-sitemap
Requiring: jekyll-feed
Requiring: jekyll-gist
Requiring: jekyll-coffeescript
Requiring: jekyll-commonmark-ghpages
Requiring: jekyll-paginate
Requiring: jekyll-relative-links
Requiring: jekyll-optional-front-matter
Requiring: jekyll-readme-index
Requiring: jekyll-default-layout
Requiring: jekyll-titles-from-headings
GitHub Metadata: Initializing…
Source: C:/RepoGitHub/FHIR-A2SI-APPOINTMENTS-API
Destination: C:/RepoGitHub/FHIR-A2SI-APPOINTMENTS-API/_site
Incremental build: enabled
Generating…
Generating: JekyllRedirectFrom::Generator finished in 0.046881 seconds.
Generating: JekyllOptionalFrontMatter::Generator finished in 0.0 seconds.
Generating: JekyllReadmeIndex::Generator finished in 0.0 seconds.
Generating: JekyllRelativeLinks::Generator finished in 0.234376 seconds.
Generating: Jekyll::Paginate::Pagination finished in 0.0 seconds.
Generating: JekyllFeed::Generator finished in 0.0 seconds.
Generating: Jekyll::JekyllSitemap finished in 0.0 seconds.
Generating: JekyllDefaultLayout::Generator finished in 0.0 seconds.
Generating: JekyllTitlesFromHeadings::Generator finished in 0.0 seconds.
Rendering: 404.md
Pre-Render Hooks: 404.md
Rendering Liquid: 404.md
Rendering Markup: 404.md
Rendering Layout: 404.md
Liquid Exception: No such file or directory - git rev-parse HEAD in /_layouts/page.html
jekyll 3.7.3 | Error: No such file or directory - git rev-parse HEAD