Last active
April 24, 2021 08:00
-
-
Save zfkingth/5868584 to your computer and use it in GitHub Desktop.
在Windows下利用total command快捷键快速调用git bash进入工作目录。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
虽然windows下有TortoiseGit工具,可以通过鼠标实现git操作,但是使用TortoiseGit久了后, | |
会发现用鼠标点来点去,效率着实不高,有时候一个命令要在菜单里找几秒中,还有就是各文件 | |
的状态图标的刷新,比直接使用git status慢很多,故产生了使用命令行的想法。 | |
但是每次使用Git Bash,需要进入到相应目录(在bash中键入目录绝对路径),而如果直接在cmd | |
下使用git命令,又没有命令补全的功能,研究发现使用Total Commander快捷键可以很好的解决 | |
这个问题。 | |
最终实现的功能为,在total commander中,进入任意一个git 工作目录(子目录也可以),按下 | |
快捷键Ctrl+~(tab上排的第一个键) ,就会打开Git Bash,而且工作目录也设置好了。 | |
设置如下,在total commander的依次点击 "设置"->"选项"->"其他",在弹出的面板右侧, | |
“快捷键”中选择Ctrl和OEM_US`~按键,然后点击 “命令”右侧的搜索图标,在弹出的窗体中选择 | |
usercmd.ini,在点击新建,名称默认就好了,然后在弹出窗口的“命”令一栏, | |
填入"c:\Program Files (x86)\Git\Git Bash.vbs" | |
“参数”栏填入%P,剩下的都点确定就好了。 | |
这样通过Ctrl+~快速调用Git Bash进入工作目录就设置好了。 | |
感谢,可以用
不错。可用
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,之前用您的这个方法很方便.非常感谢.但是最近更新 git 后找不到
Git Bash.vbs
这个文件了.不知道怎么解决?在下面这个网站下的 win git 安装包
Git