Quick tutorial about how to create an easy shortcut to Git Bash that starts in your preferred directory. This is for Windows 10 as of August 6, 2020.
Press the ⊞ Windows Key on your keyboard.
Find Git Bash in your Applications, right-click and select Open file location.
In Windows Explorer, right-click Git Bash and select Create Shortcut.
You will get an alert stating it will be placed on the Desktop, click Yes.
Right-click your newly created shortcut, and select Properties. Under the Shortcut tab, delete
--cd-to-home from the Target section. Then in the Start In section, change the path to where you’d like Git Bash to start when you open the shortcut. For me, this looks like:
Want it to Run As Administrator every time? Still under the Shortcut tab, click on Advanced , then check Run As Administrator.
(WARNING: Please do your own research about what the ramifications of running as admin are. You could cause significant irreversible damage to your system.)
Now you can either just use the shortcut from the Desktop or, in my case, I cut the shortcut and put it in my ‘code’ directory. Then I pinned it to my taskbar (right-click, then click on Pin to taskbar )