Windows 下 bat 脚本调用 Git bash 环境 sh 脚本

1、先找到 Git 安装目录

D:\Install\Git


2、Git bash 编写 sh 脚本

start.sh脚本


3、编写 start.bat脚本

bat 复制代码
@echo off

cd /d %~dp0
"D:\Install\Git\bin\sh.exe" --login -i -c "./test/start.sh"

pause

4、执行 bat 脚本

双击 start.bat


我们下期见,拜拜!

相关推荐
拾贰_C1 小时前
【anaconda】anaconda安装配置,git安装配置以及pytorch安装
人工智能·pytorch·git
Just_Paranoid3 小时前
【Gerrit Patch】批量下载 Gerrit 提交的 Patch
git·gerrit·shell·patch
<但凡.3 小时前
Linux 修炼:进程控制(一)
linux·运维·服务器·bash
谷咕咕10 小时前
windows下python3,LLaMA-Factory部署以及微调大模型,ollama运行对话,开放api,java,springboot项目调用
java·windows·语言模型·llama
Tipriest_14 小时前
Ubuntu 中 Bash / Zsh / Ash / Dash 的使用与区别(含对比图)
ubuntu·bash·dash
kali-Myon15 小时前
解决 win+R 运行处以及文件资源管理器处无法使用 wt、wsl 命令打开终端
windows·wsl·path·regedit·wt
yubo050916 小时前
YOLO系列——实时屏幕检测
开发语言·windows·python
T - mars16 小时前
Pycharm中使用git
ide·git·pycharm
火车叼位16 小时前
Clink实战指南:让Windows开发者拥有Bash级别的命令行体验
windows
私人珍藏库17 小时前
[Windows] PDF 专业压缩工具 v3.6
windows·pdf