Я установил Ubuntu 18.04 (WSL) в win 10 64 bit, 1903.
Для команды git clone https://github.com/facebookresearch/fastText.git,
git clone https://github.com/facebookresearch/fastText.git
она хорошо работает в git bash (git для windows) и ubuntu 18.04 оболочки, но не в bash (C: \ Windows \ System32 \ bash.exe), сообщение об ошибке:
git bash
ubuntu 18.04
bash
$ git clone https://github.com/facebookresearch/fastText.git Cloning into 'fastText'... fatal: unable to access 'https://github.com/facebookresearch/fastText.git/': Could not resolve host: github.com
У меня только два файла .gitconfig на моем компьютере,один для git bash и другой для ubuntu 18.04 shell.Я думаю, что ubuntu 18.04 shell может в некоторой степени равняться bash, но у bash должны быть проблемы.
.gitconfig
Могу предположить, что у вас проблемы с прокси.
Попробуйте:
git config --global --unset http.proxy git config --global --unset https.proxy
Аналогичная проблема: # 20370294 и # 5377703