k v v p a
Posted on September 1, 2020
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.
Step One
Press the ⊞ Windows Key on your keyboard.
Step Two
Find Git Bash in your Applications, right-click and select Open file location.
Step Three
In Windows Explorer, right-click Git Bash and select Create Shortcut.
Step Four
You will get an alert stating it will be placed on the Desktop, click Yes.
Step Five
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:
Step Six (Optional)
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.)
Bonus
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 )
Posted on September 1, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.