Occassionally I would receive the following error: "error: could not write index" when trying to do a git stash or git update.
error: could not write index
git stash
git update
Before doing anything drastic, try navigating to the ".git" and delete the "index.lock" file.