0

I'm running the following code on Google Colab:

!npx degit cironis/ep4 -f

and I'm getting this error message:

npx: installed 1 in 0.975s
> destination directory is not empty. Using --force, continuing
! could not find commit hash for master

I have used this exact same code with another repository and it worked perfectly. But it does not work with this repository. What am I doing wrong?

korakot
  • 37,818
  • 16
  • 123
  • 144
user3347814
  • 1,138
  • 9
  • 28
  • 50

1 Answers1

1

Github has changed its default branch from master to main instead. But degit still use master by default. So, you need to explicitly tell degit to use main

!npx degit cironis/ep4#main -f

This should download it correctly.

korakot
  • 37,818
  • 16
  • 123
  • 144