3

I have a .bat file that will access a git-hub repository and then issue the "git pull" command. I would like for the Git Bash window to stay open once the "git pull" is complete. Any suggestions? The .bat code that I'm using is below.

cd Class/UKED201801FSF2-Class-Repository-FSF

c:\Users\johnc\AppData\Local\Programs\Git\git-bash.exe -c 'git pull'
1

2 Answers 2

3

As in "Open git bash shell window, execute command and remain after term signal", see if you can add a shell command after your (here git pull) original command

git-bash -c '...; exec bash'
Sign up to request clarification or add additional context in comments.

Comments

2

Your .bat should be:

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.