hasura/learn-graphql

git command in React tutorial setup doesn't work

mjohnsonengr opened this issue · 3 comments

On https://hasura.io/learn/graphql/react/setup/

The instructions say to run git clone --filter=blob:none --sparse git@github.com:hasura/learn-graphql.git

When I do this, I get the following error message:

Cloning into 'learn-graphql'...
fatal: cannot change to 'git@github.com:hasura/learn-graphql.git': No such file or directory
error: failed to initialize sparse-checkout

I'm on WSL which ships with git 2.25 currently. Upgrading to 2.36 worked (presumably 2.26 would work too)

I'm on Ubuntu 20.04.4 LTS and got same error.
Used PPA available from Ubuntu Git Maintainers team (https://launchpad.net/~git-core/+archive/ubuntu/ppa) to install latest stable Git version:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
Upgraded to 2.36.1 and now the command works.

Hey all,
I have added a note about the git version. Looks like this is available only from v2.26 and breaks on older versions.