troubleshooting

How to fix 'fatal: invalid reference' error when running a script in WSL2 Ubuntu?

I encountered a 'fatal: invalid reference' error when running a script in WSL2 Ubuntu. The error occurred at a specific line in the Makefile.toml file. Eric suggested checking if the branch 'origin/dashboard-artifact' exists and fetching it if needed. After fetching the remote, the issue was resolved. How can I fix this error?

La

Lanqing Yang

Asked on May 07, 2023

  1. Check if the branch 'origin/dashboard-artifact' exists in your local repository.

  2. If the branch does not exist, fetch it from the remote repository using the following command:

git fetch origin dashboard-artifact
  1. After fetching the branch, try running the script again to see if the issue is resolved.
May 08, 2023Edited by