Git“快捷方式”用于文件路径? [英] Git "shortcut" for filepath?
问题描述
有没有filepath的快捷方式,因为它非常烦人,一次又一次地写完整路径?
某种正则表达式或其他东西。
我知道,我可以使用Tab键,但...
更新:
Windows和来自Git的默认sh.exe
$ b
解答: 来自 holygeek 的Git扩展是我所寻找的,但他的版本只能在* NIX系统或cygwin上使用更新版本的Bash。 这就是为什么我为msysgit创建小修复程序=> here 我写了一个工具,允许我在处理git(git-number)中的文件时使用数字。 我一直在linux上使用它(几个shell脚本和perl脚本)。 p> 如果您觉得喜欢冒险,可以尝试在Windows上工作。 这对我来说是一个巨大的生产力提升因为我不依赖Tab完成,也不需要在操作git中的文件时再编写长文件或目录名称。 git-number: https://github.com/holygeek/git-number Is there some shortcut for filepath, because it's very annoying write full path again and again? Some kind regular expression or something else. I know, I can use "Tab" key, but... UPDATE: Windows and default sh.exe from Git ANSWER: Git extensions from holygeek are what I looking for, but his version is working only on *NIX like systems or cygwin with newer version of Bash. That is reason, why I created little fix for msysgit => here I wrote a tool that allow me to use numbers when dealing with files in git (git-number). I've been using it on linux (a couple of shell script and a perl script). If you're feeling adventurous try to make it work on windows. It's been a big productivity boost for me as I don't rely on tab completion nor do I need to write the long file or directory names anymore when manipulating files in git. git-number: https://github.com/holygeek/git-number 这篇关于Git“快捷方式”用于文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!