IDE: Unknown error occurred in git repository operation.

dchoward9
Tera Contributor

My IDE for the past week keeps stating `Unknown error occurred in git repository operation.` in the git output. I have updated the remote origin and generated a new token, updated the credentials, but the issue persists, no matter what I try to do with source control in this IDE. 

When attempting to pull from the repo (which already has the backed up fluent metadata) I get this: 

Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Fetched HEAD description: 3cc722373c67e1ac2c61e72f8bf57ad40902f4d6 branch 'main' of https://github.com/me/myrepo.git
2025-08-13 15:11:04.662 [info] > Failed to get head commit for branch origin/main
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
2025-08-13 15:11:09.739 [error] > Cannot read properties of null (reading 'slice')

I'm using a PDI. The IDE plugin is up to date. I'm using Yokohama and I also tried refreshing the PDI. Seems like an IDE bug to be honest. Also pointed it to a different repo and same problem. 
2 REPLIES 2

Brady Holliday
Tera Guru

Howdy @dchoward9,

 

I'm having the same issue in a non-PDI environment. I was curious if you found a workaround/solution to this issue?

 

Thanks,

I think I tried using the ServiceNow VS Code extension instead. So cloned the repo locally, opened it in VS Code, then used the command palette to create a new project. It has guided steps to enter the URL and credentials, then choose the project to import. Then it was able to sync directly from the instance, and then I could commit and push back to my repo from there. 

Seems like the in-browser IDE may have problems.