Return to site

Git Bash For Mac Catalina

broken image


If you are new to shell

Thanks Yarnabrina, I have revisited on setting the path on Git executable (following Tools Global Options Git executable /usr/local/git/bin/git) browsed by searching Git, this git happened to be of 2017 date stamp rather than the one I had installed two days back, and this path was accepted and I could configure completely end-to-end.

If you have never been in a terminal shell, please read this crashcourse quickly. consider watchingthis shell tutorial video by Richard Darst.

Installation on Linux

The default shell is usually Bash, but if your machine is set up differentlyyou can run it by opening a terminal and typing bash. There is no need toinstall anything.

Installation on macOS

The default shell in all versions of macOS before 'Catalina' is Bash, so no need to installanything. You access Bash from the terminal (found in/Applications/Utilities). The default shell on macOS 'Catalina' is zsh which will workequally fine for our purposes.

Watch the tutorial for installing the Shell, Git, and Nano on a Mac for a Software Carpentry Workshop(copyright Software Carpentry) for an example on how to open the terminal.

Git bash for mac catalina 10.15

You may want to keep the terminal in your dock for this workshop.

Installation on Windows using Git Bash

Git Bash For Mac Catalina Os

Possible problem with this approach is that Git Bash does not seethe Python and Anaconda scripts. See also the troubleshooting page.

If you want to make sure that both Git and Python work in the same environment without modifying anypath variables, you might want to skip this installation altogether and installGit using Conda (see the Git installation instructions).

If you decide to try Git Bash, you canwatch the video tutorial(copyright Software Carpentry).

First download the Git for Windows installer.

Then run the installer and follow these steps:

  • Click on 'Next'.
  • Click on 'Next'.
  • Choose 'Nano' as the editor (unless you know you prefer vi or notepad++)
  • Keep the recommended 'Git from the command lineand also from 3rd-party software'selected and click on 'Next'. If you forgot to do this programs that you need for the workshop will not work properly. If this happens rerun the installer and select the appropriate option.

Git Bash For Mac Catalina 10.15

  • Click on 'Next'.
  • Keep 'Checkout Windows-style, commit Unix-style line endings' selected and click on 'Next'.
  • Keep 'Use Windows' default console window' selected and click on 'Next'.
  • Click on 'Install'.
  • Unselect 'View Release Notes', select 'Launch Git Bash' and click on 'Next'.

Git Bash For Mac Catalina Island

  • In the console which should open type git --version to verify the Git is installed.

If your 'HOME' environment variable is not set (or you don't know what this is):

Git Bash For Mac Catalina

You may want to keep the terminal in your dock for this workshop.

Installation on Windows using Git Bash

Git Bash For Mac Catalina Os

Possible problem with this approach is that Git Bash does not seethe Python and Anaconda scripts. See also the troubleshooting page.

If you want to make sure that both Git and Python work in the same environment without modifying anypath variables, you might want to skip this installation altogether and installGit using Conda (see the Git installation instructions).

If you decide to try Git Bash, you canwatch the video tutorial(copyright Software Carpentry).

First download the Git for Windows installer.

Then run the installer and follow these steps:

  • Click on 'Next'.
  • Click on 'Next'.
  • Choose 'Nano' as the editor (unless you know you prefer vi or notepad++)
  • Keep the recommended 'Git from the command lineand also from 3rd-party software'selected and click on 'Next'. If you forgot to do this programs that you need for the workshop will not work properly. If this happens rerun the installer and select the appropriate option.

Git Bash For Mac Catalina 10.15

  • Click on 'Next'.
  • Keep 'Checkout Windows-style, commit Unix-style line endings' selected and click on 'Next'.
  • Keep 'Use Windows' default console window' selected and click on 'Next'.
  • Click on 'Install'.
  • Unselect 'View Release Notes', select 'Launch Git Bash' and click on 'Next'.

Git Bash For Mac Catalina Island

  • In the console which should open type git --version to verify the Git is installed.

If your 'HOME' environment variable is not set (or you don't know what this is):

Git Bash For Mac Catalina Patcher

  • Open command prompt (Open Start Menu then type cmd and press [Enter])
  • Type the following line into the command prompt window exactly as shown: setx HOME '%USERPROFILE%'
  • Press [Enter], you should see SUCCESS: Specified value was saved.
  • Quit command prompt by typing exit then pressing [Enter].

This will provide you with both Git and Bash in the Git Bash program.





broken image