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

how can I get all my data from my repo with git?

I have a repo and I create a new folder and want to get all my files in their from my repo that is listed in github.

How can I do it with git ?

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

>Solution :

git clone will fetch all known commits for a given repo from a given remote. On GitHub, from the repo home page, you should be able to click the green ‘Code’ button above the README or file list; copy the HTTPS or SSH address, and paste that into git clone $ADDRESS_HERE.

For the record, git clone will also create the folder and set up the remote for future pushes or pulls. You won’t need to do both git clone and the git init && git remote add steps on the same repo; git clone is for repos that exist elsewhere, and git init is for a brand-new repo that doesn’t exist anywhere else.

You may want to have a read through https://docs.github.com/en/get-started/using-git/about-git to learn more about Git as a whole, though.

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