Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

git clone only README and git files, not actual project work

Goal: clone repo and all of it’s project contents and branches

I cloned using URL and had to setup both an SSH Key and PAT.

Bash Terminal:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ git clone https://github.com/project/synthetic-data-gen.git
Cloning into 'synthetic-data-gen'...
remote: Enumerating objects: 178, done.
remote: Counting objects: 100% (178/178), done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 178 (delta 67), reused 152 (delta 44), pack-reused 0
Receiving objects: 100% (178/178), 1.40 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (67/67), done.
me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ ls
synthetic-data-gen
me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ ls synthetic-data-gen/
README.md
me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ git branch
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ git pull
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
me@PF2DCSXD:/mnt/c/Users/me/Documents/GitHub/project$ git checkout --track -b development origin/development
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

>Solution :

You need to be into the cloned directory before doing git command

cd synthetic-data-gen
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading