ZSH插件根据以前的输出自动提供文本

时间:2017-05-27 22:45:29

标签: git automation console zsh oh-my-zsh

(p) ➜  p git:(feature/62-api-custom-image-categories) git checkout develop                               
Switched to branch 'develop'
Your branch is ahead of 'origin/develop' by 5 commits.
  (use "git push" to publish your local commits)
(p) ➜  p git:(develop) git merge feature/62-api-custom-image-categories

ZSH中是否有解决方案在您从以前的控制台输出中键入时自动提供文本?例如,我有一个文本功能/ 62-api-custom-image-categories ,我想在我输入git merge fe时自动提供分支的名称...

1 个答案:

答案 0 :(得分:0)

list3

"No commit specified and merge.defaultToUpstream not set"

*[728-reboot-62166][~/w/git/qradar]$ gm
fatal: No commit specified and merge.defaultToUpstream not set.

似乎git可以通过保持跟踪分支集和上面的配置变量设置来自动化部分内容。