我在 Mac 上使用 git。对于每个命令,我都写了 git fetch|rebase|log|status....
。我想要的是编写 git
按 Return 并进入 git 模式,我只写 log|fetch|rebase
。这可能吗?
最佳答案
您可以使用 repl ,克里斯·万斯特 pull 思 (Chris Wanstrath) 着。
安装它
brew install repl
(如果你还没有使用 howbrew,我强烈建议你看看 http://brew.sh )
安装repl后,你可以简单地运行
repl git
所有后续命令都将发送到 git。
关于终端中的 Git 模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28984544/