Omlet Docs
BlogChangelogAsk the CommunityContact Sales
  • Get started
    • What is Omlet?
    • CLI & Dashboard
  • Omlet for VS Code
  • CLI & Dashboard
    • CLI
      • Your first scan
      • Set up your dashbard
      • Future scans
      • Ensure data accuracy
      • Config file
        • Exports configuration
        • Mapping aliases
        • Excluding certain components & files
        • Tutorial: Config file
      • Custom component properties
        • CLI hooks
        • Tutorial 1: Team/code owner usage
        • Tutorial 2: Package version tracking
        • Other example scripts
      • Set up regular scans
      • CLI commands
        • init
        • analyze
        • login
    • Analytics
      • Popular charts
      • Create custom charts
      • Save charts to dashboard
      • Share charts and dashboards with your team
      • Download chart data
    • Components
      • Search and filter components
      • Component tags
      • Dependency Tree
      • Props tracking
    • Workspace & Account
      • Invite team members
      • Renaming projects
      • Update your email address
      • Access your billing details & invoices
  • Security
    • Security in Omlet
    • Data collection
  • Help
    • Pricing
    • FAQs
      • How detection works?
      • Monorepo support
      • How to delete scans?
      • Omlet vs. React Scanner
      • Working with multiple workspaces
    • Troubleshooting
      • Debugging CLI issues
      • Some components aren't detected
      • API failed or timeout
      • Are you behind a proxy?
      • Troubleshooting Git errors
Powered by GitBook
On this page
  • Could not find git root
  • Could not find commit in git repo or Git Util error
  1. Help
  2. Troubleshooting

Troubleshooting Git errors

PreviousAre you behind a proxy?

Last updated 11 months ago

Omlet uses the Git history to designate when a component is created and updated. If your project does not have the Git setup or no commits exist, you may encounter the following issues.

Could not find git root

This error indicates that Git is not initialized in the repository. If you encounter Could not find git root error, follow the steps below to resolve the issue.

Ensure your project contains a .git file and confirm that it is sourced from a Git repository. If you manually downloaded the project as a .zip file, we'd recommend cloning the repository directly from your Git instance.

git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

If you don't have Git set up, you can run the below command sequence to resolve the issue. This will initiate the Git for your project and add an initial commit.

git init 
git add . 
git commit

Could not find commit in git repo or Git Util error

These errors indicate that no commit is found or there is an issue with the Git utility. To resolve these issues, ensure there are commits in the Git repository.

If commits exist already, make sure that your project is not a shallow clone. You can run the below command to unshallow.

git pull --unshallow

Still need help?

If the issue persists, you can contact us at .

support@omlet.dev