VS Code – Invalid Argument opening .git/config file

Launching VS Code this morning, I was unable to initialise git.

Error:

warning: unable to access ‘C:/Users/craig.xxxxxxx/OneDrive xxxxxxxxxxx/Documents/VS Code/BICEP/Axxxxxxxxxxx/.git/config’: Invalid argument

Resolution:

This was a super simple one. Turns out, my OneDrive was signed out and hadn’t synced recent changes. I re-authenticated with OneDrive which pulled down the most up to date config file, solving the issue.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments