Start "" "%PROGRAMFILES%\Git\bin\sh.exe" --login
cd E:
git clone SshLink
The above command is first opening normal cmd and then E: drive and then gitbash shell. I just want to open git-shell directly and change the directory to E: drive and give clone command.
You could try:
That will open a bash, go to the drive E and try the
git cloneThe final
bashallows for the session to not close immediately.Other option, as mentioned in the comments by Compo:
That would use the
/doption ofstart.