error cannot open .git/fetch_head permission denied windows git bash code example Example: error: cannot open .git/FETCH_HEAD: Permission denied sudo chown -R $(whoami) .git/