linux - 是否可以在没有 git 前缀的情况下运行 git 命令

标签 linux git ubuntu

如标题所述,是否可以启动一个交互式 git shell,其中所有命令都自动以git 为前缀?

所以不要这样做:

git fetch
git add
git commit

我希望能够做这样的事情:

git -i  #start the 'interactive' git shell, not the right command obviously

fetch   #does git fetch
add     #does git add
commit  #does git commit

git -x  #exit the 'interactive' git shell

最佳答案

我认为 git 中没有集成这种模式。我建议你查看git-sh .您可以将其配置为使用您喜欢的别名。

关于linux - 是否可以在没有 git 前缀的情况下运行 git 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25261910/

相关文章:

linux - ubuntu 13.04 和 g++

linux - SCIP make 安装错误 - scipoptsuite-6.0.2

linux - 为什么 Apache + PHP 需要执行权限才能写入文件?

windows - git checkout -- <filename> 不会在 Windows 10 上恢复本地删除的符号链接(symbolic link)

git - "git branch -vv"改变远程分支的颜色

linux - 如何用另一个 bash 脚本创建一个 bash 脚本?

linux - 使用 GREP 搜索特定行的文件

Linux:可以扩展和别名吗?

git - .gitignore 不适用于 **/*.xyz

Wordpress PHP 版本与服务器不同