how to clone a repo to a new repo code example
Example 1: git mirror repository
cd myrepo
git fetch origin
git push --mirror <remote_repo_git_url>
Example 2: cloning projects from github to local repository
cd [projects-folder]
gh repo clone [user-name]/[project-name]