Encountered bash ***. Sh file to run .sh file to install and use Windows Git
1 Introduction
Most papers are to achieve the code in Linux code, but many people do not how familiar Linux system, in order to run the .sh file in the windows, you need to install Git. I am a windows 10 system.
2 Git installation
- To Git official website to download the installation package, or directly enter the download address download.
Select the corresponding version download. - Click Install to start the installation package directly been next.
Select the installation location, I chose to install the D drive, we all know that software is not always installed by default in the C drive.
Check the Create a shortcut on the desktop, Git Bash and Git GUI must be checked on.
Then direct all the next, to start the installation.
- We need to set environment variables after installation.
Find Advanced System Settings
find the environment variable:
Find the Path system variable:
add Git position in the
environment variable can be used directly to complete.
3 Git use
Exe files found in three location of your install Git
single sh.exe appear a black window
using the command cd to the directory where the file is located. Use sh ***. Sh run .sh file.
Under or directly to a file directory, right run git bash Here.