添加git bash到鼠标右键
Step 1. On your desktop right click "New"->"Text Document" with name OpenGitBash.reg
Step 2. Right click the file and choose "Edit"
Step 3. Copy-paste the code below, save and close the file
Step 4. Execute the file by double clicking it
Note: You need administrator permission to write to the registry.
Windows Registry Editor Version 5.00
; Open files
; 默认 Git-Bash 位于D:\\Program Files (x86)\\Git\\git-bash.exe ,此处改为你自己的安置路径
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash]
@="Open Git Bash"
"Icon"="D:\\Program Files (x86)\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash\command]
@="\"D:\\Program Files (x86)\\Git\\git-bash.exe\" \"--cd=%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\bash]
@="Open Git Bash"
"Icon"="D:\\Program Files (x86)\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\Directory\shell\bash\command]
@="\"D:\\Program Files (x86)\\Git\\git-bash.exe\" \"--cd=%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
@="Open Git Bash"
"Icon"="D:\\Program Files (x86)\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="\"D:\\Program Files (x86)\\Git\\git-bash.exe\" \"--cd=%v.\""
热门话题 · · · · · · ( 去话题广场 )
- 维系精神生活的北京角落 985次浏览
- 一人一杯一口入魂的夏日特饮 1.2万次浏览
- 我在网络上感受到的陌生人善意 611次浏览
- 身边的科普现场 新话题
- 现代人的“卡夫卡时刻” 2577次浏览
- 少年时代的科普读物 新话题