![]() ![]() Okay, with that disclaimer out of the way, let's continue. If you follow these steps precisely, you won't be at risk, but please do not start using "sudo", or editing system files if you're not exactly sure what you are doing. We'll be using "sudo", (which stands for super user do) which allows you to perform actions that standard users are not allowed to, in order to protect them from accidentally messing up their systems. (If you're not familiar with VI, I'd encourage you to checkout the " Command Line Basics" series on this site to get familiar with it.)īefore I proceed, I want to mention that what we're going to do could be harmful to your machine if done improperly. This means that my Mac is trying to load the "Apple version" of Git before the one we just installed, and since it's not there, we're prompted to install it. When I do that, you'll notice that "/usr/local/git/bin" is at the end of the line. We can see what our PATH includes by typing "echo $PATH" and pressing Enter. This is simply because we haven't added "/usr/local/git/bin" to our PATH variable. However, when I try to run "git -version" again, I'm prompted to install the command line developer tools again. ![]() We can verify that fact by typing "ls /usr/local" in the command line, and in that list, we see "git". (A restart would also work.)Īt this point, we have installed Git on our system. Finally, you need to logout of your Mac OSX user account and log back in. ![]() (This loads the path to the script in the terminal.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |