Reputation: 61
In window 11 when we right click shows different options from windows 10. In windows 10 there is short cut to open current folder in a git bast. So what is short cut to open current folder in git bash in windows 11.
Upvotes: 3
Views: 23312
Reputation: 1122
Start > Terminal.
⌵ > Settings.
Click "+ Add a new profile".
Click "+ New empty profile".
Name: Git Bash
SOURCE: https://stackoverflow.com/a/56867460/490748
SOURCE: https://www.gnu.org/software/bash/manual/bash.html#Invoking-Bash
-i Force the shell to run interactively.
-l Make this shell act as if it had been directly invoked by login.
Command line: C:\Program Files\Git\bin\bash.exe -i -l
Starting directory:
[x] Use parent process directory
Icon: C:\Program Files\Git\git-bash.exe
Click "Save".
Click "+ New empty profile".
Select Duplicate a profile: [Git Bash]
Click "Duplicate".
Name: Git Bash (Run as administrator)
Run this profile as Administrator: [On]
Click "Save".
Upvotes: 1
Reputation: 193
Navigate inside the I_Want_To_Open_This_Folder_in_Git_Bash folder and "right-click" with your mouse,
choose "Show more options".
Upvotes: 9
Reputation: 11
Just three simple steps...
Upvotes: 1
Reputation: 91
open the command prompt anywhere using right click option.
and use given "Down arrow" in cmd prompt.
Choose setting
Add new profile
in command line browse git/git-bash.exe location and add it.
.....Using the same down arrow, you can open git.
Upvotes: 9
Reputation: 41
What I've found, laid out in this video by Code Astra here, is that Windows 11 offers a drop down to select the terminal profile of your choice, once you have selected Right Click --> Open in Terminal.
Once you have the Terminal open, select the drop down to the right of the Terminal tab. Here you can select your desired Terminal Profile. If your Git Bash Profile is not found here, select Settings.
In the settings menu, you can choose your default Terminal profile, application, and decide on other various options.
Navigate on the left pane to "Add a new profile," and then under Add a new profile, select "+ New empty profile"
Fill the form. Name it Git Bash, then naviagte tot he "Program Files" directory where the git-bash.exe is found, most likely "C:\Program Files\Git\git-bash.exe" and choose the starting directory.
Now when you right click, Windows will open Git Bash.
I hope this was helpful!
Upvotes: 4