Last active
April 20, 2023 13:55
-
-
Save kujiy/4f5c0b6e7ab47a1637e4 to your computer and use it in GitHub Desktop.
How to open a specific folder with git-bash.exe from a command line(shell)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With argument | |
"C:\Program Files\Git\git-bash.exe" "--cd=%1" | |
Direct | |
"C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\" |
Now I need how to execute a command with startup.... Anyone knows?
Did you ever find out how? I am trying to find the same answer now.
Works fine, thanks!
Thanks!
@kujiy and @happycollision
You can add the script through the task wizard if you are using Win10
This article helped me run a set of batch scripts when my PC starts
Hah. 🧟
Thanks for the help @abhivemp!
I have also have same problem in gitforwindows, which has cygwin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I check what command is bound to "Git Bash Here"?
http://stackoverflow.com/questions/29050474/cmd-command-for-git-bash-here
Open the Registry Editor regedt32 or regedit.
Menu "Edit" > "Find" > "Find what" and enter "git_shell"
Examine the returned Registry entries.
One will be:
HKEY_CLASSES_ROOT\Directory\shell\git_shell\command