xcodeを9.2にupdateしたら? git-pushで以下のerrorがでるようになった。
fatal: unable to access 'https://github.com/username/repository.git/': Could not resolve host: github.com
xcodeのcommand line toolsが消えていたようで、command line toolsをinstallしたらでなくなった。 terminalから以下のコマンドでinstallできる。
xcode-select --install
正確な原因は不明。