Menu
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.
Git Terminal Commands
![Download Git Mac Terminal Download Git Mac Terminal](/uploads/1/1/8/2/118287898/319157694.jpg)
1. Open the main page of the repository in browser. click Clone or download.
Chapter 37 Accessing the terminal and installing Git. Before getting started, we need to make sure you have access to a terminal and that Git is installed. The terminal is integrated into Mac and Linux systems, but Windows users will have to install an emulator.There are many emulator options available, but here we show how to install Git Bash because it can be done as part of the Windows Git. Click that to see a dropdown where you can copy and paste the URL to the.git file. We’re not going to download the ZIP file. We’re going to pull the files from the Mac terminal instead. Go ahead and open a Mac terminal (it’s under Applications-Utilities). Works like a charm — I've been upgrading git all the time using this package and never had the slightest problem. My only issue is that it lags slightly behind the latest & greatest supported git package — it's really a pity it's not kept up-to-date with, say, the Linux version.
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.
Git Mac Download
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.
Git Terminal Windows
5.Type “git clone”, and then paste the URL you copied in step 2. Press Enter. The local clone will be created.