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 ?
>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.