During development of Node.JS, you may need to clone a GitHub reposity to local mac computer. A repository on GitHub is a remote repository. You can clone the repository to your mac computer in order to create a local copy and sync between the two locations.
1. Open the main page of the repository in browser. click Clone or download.
2. Click the Copy icon to copy the clone URL for the repository.
3. Open Terminal on your mac. You can do this by openning Launchpad and search for Terminal. Once it’s opened, you can right-click the Terminal icon in dock and choose “Options > Keep in Dock” so that you can open it directly from dock next time.
4. Type cd and the directory where you want the cloned directory to be made. You can right-click the folder in Finder and choose “Copy <the folder name>” to copy the path into clipboard. Then by pressing “Command” and “v” on your keyboard to paste the path into terminal.
5.Type “git clone”, and then paste the URL you copied in step 2. Press Enter. The local clone will be created.