终端中的 Git 模式

标签 git

我在 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/

相关文章:

git - 在公司防火墙后面如何让 go get 为 golang.org 工作

ruby-on-rails - 如何获取 Gemfiles 中所有 gem 的 Github 存储库位置?

Git 不改变工作目录

git - 显然 git push 成功后,文件不在目标上

c# - 引入 Visual Studio 2015 的问题

git - Jenkins 找不到 JUnit (Netbeans+ Git + Ant + JUnit + Jenkins)

git - 自动化 GitHub 推送到 VSOnline

git - 缺少 git 提交

git - 如何使用 index.html 作为子目录的符号链接(symbolic link)在 gh-pages 中部署

git - for 遍历具有特定名称的所有 git 分支