개요

windows powershell에선 .sh 파일을 실행하지 못한다. 하지만 이를 실행할 수 있는 방법이 있다.

환경

windows 11 windows powershell 7.6.0

wsl –version WSL 버전: 2.6.3.0 커널 버전: 6.6.87.2-1 WSLg 버전: 1.0.71 MSRDC 버전: 1.2.6353 Direct3D 버전: 1.611.1-81528511 DXCore 버전: 10.0.26100.1-240331-1435.ge-release Windows 버전: 10.0.26200.8246

git –version git version 2.51.0.windows.2

방법

  1. git 설치
  2. 다음 실행파일을 이용해 .sh 파일을 실행
& "C:\Program Files\Git\bin\sh.exe" <실행파일 경로>