bat文件发出git pull命令并保持git bash窗口打开

bat文件发出git pull命令并保持git bash窗口打开,git,batch-file,git-bash,Git,Batch File,Git Bash,我有一个.bat文件,它将访问git hub存储库,然后发出“git pull”命令。我希望GitBash窗口在“GitPull”完成后保持打开状态。有什么建议吗?下面是我正在使用的.bat代码 cd Class/UKED201801FSF2-Class-Repository-FSF c:\Users\johnc\AppData\Local\Programs\Git\git-bash.exe -c 'git pull' 与在“”中一样,请查看是否可以在(此处git pull)原始命令之后添加

我有一个.bat文件,它将访问git hub存储库,然后发出“git pull”命令。我希望GitBash窗口在“GitPull”完成后保持打开状态。有什么建议吗?下面是我正在使用的.bat代码

cd Class/UKED201801FSF2-Class-Repository-FSF

c:\Users\johnc\AppData\Local\Programs\Git\git-bash.exe -c 'git pull'
与在“”中一样,请查看是否可以在(此处
git pull
)原始命令之后添加shell命令

git-bash -c '...; exec bash'
您的.bat应该是:

cd Class/UKED201801FSF2-Class-Repository-FSF
c:\Users\johnc\AppData\Local\Programs\Git\git-bash.exe -c 'git pull; exec sh'
可能重复的