![mac install git command line mac install git command line](https://www.linode.com/docs/guides/how-to-install-git-on-linux-mac-and-windows/installing-git-accept-gnu-license_hu4137fcaca481cdc43b658d1f64d5f1b0_121182_694x0_resize_q71_bgfafafc_catmullrom_2.jpg)
![mac install git command line mac install git command line](https://www.oreilly.com/library/view/git-essentials/9781787120723/assets/25726502-9687-4b3b-b168-5c48f8107d24.png)
That's it! No need to hit Return or anything else, the terminal will have changed to that folder and you're ready to go! Go Beyond Git With your terminal prompt empty (do not type anything in it) hold Cmd and drag a folder onto the terminal. There's an even quicker way to navigate the terminal to a specific folder. If you want to, you can cancel the current command, press the Ctrl–C (Mac & Windows) and you'll be placed on a new, clean command line. git -version If you don’t have it installed already, it will prompt you to install it. On Mavericks (10.9) or above you can do this simply by trying to run git from the Terminal the very first time. The easiest is probably to install the Xcode Command Line Tools. This can be a great time saver! Tip: Cancel the Current CommandĪs you type a command you may make mistakes. There are several ways to install Git on a Mac. Keep pressing Up Arrow again to flip through your previous commands. In the terminal, you can press the Up Arrow key to bring up the last terminal command you used.
Mac install git command line windows#
Windows using Command Prompt: Type dir and hit Enter. Windows using Git Bash: Type ls and hit Enter. To see the contents of this folder, use the following command: Click on the terminal window and hit Return (Mac) or Enter (Windows) to navigate to that folder. Your command should now read something like (your path will vary based on your computer and terminal app):Ĭd /Users/dan/Desktop/Class\ Files/Hipstirred-Websiteħ. Drag the Hipstirred-Website folder into the terminal window and it should type out the path for you. Arrange the windows so you can see the Hipstirred-Website folder and the terminal window at the same time.Ħ. While we could type out the file path to the folder we want to navigate to, let's see a more graphical approach. In the terminal window, type cd and a space.ĥ. Please note that from now on when we say terminal window, we are generically referring to the Terminal, Command Prompt, or Git Bash window.Ĥ. Otherwise, launch Git Bash, which may be an icon on your Desktop, or in the Windows Start menu (possibly in a Git folder).ģ. Windows: If you're already familiar with the Windows Command Prompt and prefer it, launch that app. Mac: Go to Applications > Utilities and open Terminal.app. To access the command line, do the following instructions for your platform: Make sure you can see the Hipstirred-Website folder. On your Desktop, go into the Class Files > Git Class.
![mac install git command line mac install git command line](https://i.stack.imgur.com/SNgky.png)
Mac install git command line how to#
While there is a lot you can do via the command line interface, the main thing you need to know how to do for Git is to navigate to a folder.