Data: Git Bash Installation for Windows

A. Reference: Software Carpentry Unix Shell Tutorial

B. Steps

  • Download git (git-2.23.0-64-bit.exe) for windows from gitforwindows.org
  • Install git for windows to c:\program files\git
  • Select Components -> Next
    • Additional icons: On the Desktop
    • Windows Explorer integration: Git Bash Here; Git GUI Here
    • Git LFS (Large File support)
    • Associate .git* configuration files with the default text editor
    • Associate .sh files to be run with Bash
  • Choosing the default editor used by Git: Use Notepad++ as Git’s default editor -> Next
  • Adjusting your PATH environment: Use Git and optional Unix tools from the Command Prompt -> Next
  • Choosing the SSH executable: Use OpenSSH -> Next
  • Choosing HTTPs transport backend: Use the OpenSSL library -> Next
  • Configuring the line ending conversions -> Checkout Windows-style, commit Unix-style line ending -> Next
  • Configuring the terminal emulator to use with Git Bash: Use Windows’ default console window -> Next
  • Configuring extra options: Enable file system caching; Enable Git Credential Manager; -> Next -> Install
  • Set home environment: cmd -> cd users\username\documents ->set HOME “%USERPROFILE%” -> exit

C. Note

  • Windows operating system do not automatically have a Unix Shell program installed. The post shows how to install an emulator included in Git for Windows, which provides the access to both Bash shell commands as well as Git.

D. Help