krothuman.blogg.se

Using git bash on mac
Using git bash on mac








using git bash on mac

bash_profile file: export PATH="$HOME/bin:$PATH" `brew -prefix`/etc/bash_completion.d/git-prompt.shĪll you need to do is place the git-completion.bash file in your user home bin directory and place the following in you. Latest version of Git (1.7.12) also requires the following to enable the prompt.

using git bash on mac

#Using git bash on mac install

The best way to check if you have git correctly installed using homebrew ist to execute brew info gitĪnd check the output for the install directory of the git bash completion `brew -prefix`/etc/bash_completion.d/git-completion.bash If you installed git using homebrew than you might adjust the MacPorts advice a little and add this to your. If so, enter MacPorts bash by typing bash and try git completion again. If completion doesn't work try echo $BASH_VERSION to see if that's the issue. Note: bash 4.1 or higher is required by bash_completion.sh. Or for MacPorts with newer versions of git: if then opt/local/etc/profile.d/bash_completion.sh Or for MacPorts since version 2.1.2 on Mountain Lion: # MacPorts Bash shell command completion Then add the following to your ~/.profile or ~/.bash_profile: # MacPorts Bash shell command completion If you also want support for pulling from SVN repositories and docs, use this instead of the second line: sudo port install git-core +bash_completion +doc +svn Sudo port install git-core +bash_completion dmg image, these would be the commands in Terminal.app: sudo port selfupdate I installed git using MacPorts on my new Snow Leopard installation.










Using git bash on mac