“git unable to read current working directory no error” – posh git (windows 10)

Question:

I receive this error: Unable to read current working directory: No error when I execute any git command in any directory.

To use git on powershell I installed github for windows (the GUI version) editing the powershell profile file as described here: https://git-scm.com/book/it/v2/Git-in-Other-Environments-Git-in-Powershell

This happened when yesterday I updated github desktop (I’ve it now at version: 3.0.9.0)

What can I do?

UPDATE:

Obviously I wasn’t working in a non-existing directory. I tried to delete and re create directories but it doesn’t work. Git doesn’t work everywhere, also if I create a dir and execute git init in it, it won’t work.

Answer:

I reported this as issue in the posh-git repo on github: https://github.com/dahlbyk/posh-git/issues/236

And in another project where someone was having my same problem: https://github.com/git-for-windows/git/issues/473

In my opinion, Windows 10 screwed up something (symlinks?) updating itself and in order to make it works (as you can read from the second link of the issue) to refer to my documents folder (where I keep all my github repos) I don’t write anymore cd documenti (the italian folder name) but cd documents and it just works.

Source:

“git unable to read current working directory no error” – posh git (windows 10) by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply