clone a github repository mac code example Example: cloning projects from github to local repository cd [projects-folder] gh repo clone [user-name]/[project-name]