How to feed command line argument to git-bash.exe? #16731
Unanswered
diffuseinstability
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running Stable Diffusion on Windows 11 with the Automatic1111 Web UI using the Git Bash (git-bash.exe) emulation layer (https://www.atlassian.com/git/tutorials/git-bash). Currently, I have to launch git-bash.exe using a shortcut I created in my Start Menu, copy and paste in a long command to change the current directory, then copy and paste another long command to run webui-user.bat. I can't even use hotkeys, because Ctrl+V doesn't work in Git Bash.
What I want to be able to do is launch Git Bash via the Windows Terminal using a shortcut or .bat file that feeds Git Bash a command line argument instructing it to run a (different) .bat file that, in turn, contains the commands to change the directory and run webui-user.bat. In other words, I want a a shortcut or .bat file will use the Windows OS to run Git Bash, but also feed Git Bash a command to run with the emulation environment.
Does anyone know how to feed such a command line argument to git-bash.exe?
Failing that, does anyone know where to any other method for setting a 1-click execution of this setup? Or even a list of commands that can be executed on the command line for git-bash.exe?
For arguments sake, let's assume
Git Bash executable: C:\Program Files\Git\git-bash.exe
Automatic1111 UI: C:\Users\thisuser\SD\webui-user.bat
Default directory used as Git Bash "home" upon start up: C:\Users\thisuser\
Beta Was this translation helpful? Give feedback.
All reactions