I was working in a pull request and deleted all my local files and local git repository.
When trying to get the code from the PR back, I get an error.
So far, I tried to clone the master repository and, inside the directory, checkout the PR.
git clone https://github.com/nf-core/modules.git cd modules gh pr checkout 982
I also tried cloning my personal fork.
git clone https://github.com/asthara10/modules.git cd modules gh pr checkout 982
The error I get is:
could not determine base repo: fatal: not a git repository (or any parent up to mount point /var/lib) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). /snap/gh/453/usr/bin/git: exit status 128
I would appreciate any help, I am new with git.
Thank you very much,