To find the location of the Git executable that's used by your current Terminal session. To update your PATH variable, edit the file ~/.bash_profile in a text editor and make sure that it includes something like this: export PATH=/usr/local/bin:$PATHĪfter saving this file, close your current Terminal window and open a new one - it should then use the new PATH setting. You seem to be facing the problem that your Terminal is still using a different Git executable on the path. Just make sure that you update your PATH variable to include /usr/local/bin, since this is where Homebrew will install the Git executable.
In Part 1 we will install git and set up the configu. Once you have installed Homebrew, you can use it to install the latest version of Git: brew install git On these video series, we are going to learn and master using git. With Fork, you can now lock and unlock files from LFS menu in file context menu, avoiding potential binary merge conflicts in LFS files. The Homebrew Wiki has more installation options. Mac Git Download Windows Git LFS locking is a feature that lets developers lock files on the server, preventing their concurrent modification by multiple users of the same repository.
Installing Homebrew can be done like this: ruby -e '$(curl -fsSL )'Įxecute this in a Terminal, it will install Homebrew for your user. Once you have set up Homebrew, you can use it to install and update many other command line tools with a single command. I prefer using Homebrew over the dedicated download and install options like you used for Git. To install Git without using Xcode, you can use Homebrew (which is great for installing other tools as well) - it comes highly recommended.