Troubleshooting Guide
This guide will help you resolve common Git issues while working with applications connected through Isomorphic Git.
1. Error: Cannot find HEAD
HEAD
Why this happens:
Git was not initialized properly in your local application.
The Git metadata may have become corrupted.
The repository setup is incomplete.
How to fix:
Take a backup of your application (especially if your latest commits are not pushed yet).
Clear the Git datastore from the application’s Git settings.
Re-clone the application from the remote repository.
If the re-clone is missing your recent local changes, import the backup you created earlier.
2. Error: Git Token Expired (Clone / Push / Pull / Fetch fails)
Why this happens:
Your authentication token from the Git provider (e.g., GitHub, Azure DevOps) has expired.
How to fix:
Generate a new token from your Git provider (GitHub, Azure DevOps, etc.).
Open Credential Manager (or the credential store you’re using).
Find the saved credential for Git and update it with your new token.
3. Error: Unable to Clone the Application
Why this happens:
Invalid repository URL or credentials.
Corrupted local datastore.
How to fix:
Clear your Git datastore from the application settings.
Double-check that your repository URL is correct.
Revalidate your credentials or token.
Try cloning again.
4. Error: Push Failed (Merge Conflict / Non-Fast-Forward Issue)
Why this happens:
Your local branch has diverged from the remote branch (ahead/behind).
Git cannot perform a fast-forward merge automatically.
How to fix:
Create a new branch from your current branch.
Push this new branch to the remote repository.
Open your Git provider’s UI (GitHub, Azure DevOps, etc.).
Raise a Pull Request (PR) from the new branch into your current branch.
Resolve merge conflicts directly in the Git provider’s UI.
Once merged, pull the updated branch locally to sync your application.
5. When to Clone vs. Create a New Application
✅ Clone: If you already have an existing repository/branch with commits that you need to work on.
✅ Create New Application: If no repository exists yet, or you are starting from scratch.
6. Switching to a Specific Branch (Not the Default Branch)
Steps:
Take a backup of your application.
Create a new application and connect it to Git using the repository link.
Run a git fetch to get all branches.
Checkout the branch you want to work on:
Import your backup application into this branch if needed.
Last updated
Was this helpful?