Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to open a specific folder with git-bash.exe from a command line(shell)
With argument
"C:\Program Files\Git\git-bash.exe" "--cd=%1"
Direct
"C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\"
@kujiy

This comment has been minimized.

Copy link
Owner Author

@kujiy kujiy commented Nov 17, 2015

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

@kujiy

This comment has been minimized.

Copy link
Owner Author

@kujiy kujiy commented Nov 17, 2015

Now I need how to execute a command with startup.... Anyone knows?

@happycollision

This comment has been minimized.

Copy link

@happycollision happycollision commented Sep 30, 2016

Did you ever find out how? I am trying to find the same answer now.

@lukasz-pyrzyk

This comment has been minimized.

Copy link

@lukasz-pyrzyk lukasz-pyrzyk commented Oct 4, 2016

Works fine, thanks!

@samiraguiar

This comment has been minimized.

Copy link

@samiraguiar samiraguiar commented Nov 17, 2016

Thanks!

@abhivemp

This comment has been minimized.

Copy link

@abhivemp abhivemp commented Nov 3, 2020

@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

@happycollision

This comment has been minimized.

Copy link

@happycollision happycollision commented Nov 3, 2020

Hah. 🧟

Thanks for the help @abhivemp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.