The git-osx-installer that you used should have installed git into /usr/local/git. See if you can cd into that directory. Hindi Font Download For Mac there.
Install Git on Mac OS X. There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. Fork - a fast and friendly git client for Mac and Windows. How to get started with Git on Mac. >cd /usr/local/git -bash. The link said download Git and it will magically start working.
If you can, then check that your PATH was correctly set by running echo $PATH from the terminal and making sure that you see /usr/local/git/bin in the included PATH. If not, you need to add it to your PATH. Did you run the included shell script setup git PATH for non-terminal programs.sh? Update 1: How to run the included shell script • Mount the git-osx-installer disk image by double-clicking git-18.104.22.168-x86_64-leopard.dmg, which should be located in your Downloads folder. • Open Terminal from /Applications/Utilities/Terminal • Type cd /Volumes/Git 22.214.171.124 x86_64 Leopard/ • Type./setup git PATH for non-terminal programs.sh and hit Enter to run the shell script.
Note: Once you type./setup you can hit the Tab key and it will autocomplete for you. • Open a new Terminal and type echo $PATH • Confirm that you see /usr/local/git/bin in your PATH. Update 2: Show Git Who's the Master Open Terminal and issue the following commands: echo '/usr/local/git/bin' >git sudo mv git /etc/paths.d When you run sudo it will ask for your OS X password. After issuing those two commands, you should be able to open a new Terminal window and see /usr/local/git/bin when you run echo $PATH. For this to work you have to have the following in /etc/profile, which it does by default: if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi. Why not just run it directly?
You can learn to configure it when you become more experienced. Check if you can run git to see the current version installed /usr/local/git/bin/git --version Check if you can run git to see the help available /usr/local/git/bin/git --help Later, after you learn how to use git, you can configure your path to automatically find git, by changing your path, using shell scripts, symbolic links. Any of these will then allow you to run: git --version git --help When working with java or mvn or eclipse, the same goes.
Try running the simplest command first to make sure you can actually run. Then, figure out how to simplify the process. If git was installed in another directory, search for it, then run it using the entire path.
Git Bash for Mac Did you (finally) migrate from Windows to Mac and the only thing you miss is the lovely Git Bash? You have no idea what the Git Bash is (or Windows for that matters) and yet you really want to improve your Git experience on Mac? Here it comes the Git Bash for Mac: a nice Terminal customisation that always shows you the branch you are on, powered by a tab-based autocompletion for all of Git’s subcommands, command-line parameters, and remotes and ref names. Install Follow these steps: • from the Terminal, run. /bin/bash -c ' $(curl -fsSL ) ' • open Terminal ->Preferences ->Profiles and select the theme you used to have; • restart the Terminal and (un)enjoy! Customize You don't like the colors of your new prompt? Open ~/.git-bash-for-mac.sh and start messing up with it!
In addition, by simply exporting a couple of variables in ~/.git-bash-for-mac.sh you can make you prompt even more informative: • if you set export GIT_PS1_SHOWDIRTYSTATE=1, unstaged (*) and staged (+) changes will be shown next to the branch name; • if you set export GIT_PS1_SHOWSTASHSTATE=1 and something is stashed then a '$' will be shown next to the branch name; • if you set export GIT_PS1_SHOWUNTRACKEDFILES=1 and there are untracked files then a '%' will be shown next to the branch name. More info and options can be found.