Encountered bash ***. Sh file to run .sh file to install and use Windows Git

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

  1. To Git official website to download the installation package, or directly enter the download address download.
    Here Insert Picture Description
    Select the corresponding version download.
  2. Click Install to start the installation package directly been next.
    Here Insert Picture Description
    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.
    Here Insert Picture Description
    Check the Create a shortcut on the desktop, Git Bash and Git GUI must be checked on.
    Here Insert Picture Description
    Then direct all the next, to start the installation.
    Here Insert Picture Description
  3. We need to set environment variables after installation.
    Find Advanced System Settings
    Here Insert Picture Description
    find the environment variable:
    Here Insert Picture Description
    Find the Path system variable:
    Here Insert Picture Description
    add Git position in the
    Here Insert Picture Description
    environment variable can be used directly to complete.

3 Git use

Exe files found in three location of your install Git
Here Insert Picture Description
single sh.exe appear a black window
Here Insert Picture Description
using the command cd to the directory where the file is located. Use sh ***. Sh run .sh file.
Here Insert Picture Description
Under or directly to a file directory, right run git bash Here.
Here Insert Picture Description

Published 21 original articles · won praise 1 · views 1126

Guess you like

Origin blog.csdn.net/Elenstone/article/details/104982189