如标题所述,是否可以启动一个交互式 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/