Skip to content

Git Error Fix

nwl292 edited this page Oct 3, 2019 · 1 revision

If you are experiencing an error message similar to this:

fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to 'U:/Documents/Workspace/aearep/aearep-89/.git/logs/HEAD': Invalid argument

Then you're probably trying to clone or commit a repo on a shared computer location as opposed to a local location. As an example, I will refer to aearep-89 as the corrupted repository.

  • First, copy any uncommitted files from aearep-89 to your Desktop such as the code check file or your REPLICATION.md file
  • Next, go to bitbucket and clone repository aearep-89 into C:/Users/(yournetID)_RS
  • Copy your uncommitted files into this repository

This should fix the issue and you should be free to push, pull, and commit from this location!

Clone this wiki locally