我最近从 oh-my-zsh - >迁移了 bash - >的 prezto 即可。在这一切中,我以某种方式弄乱了我的房间。现在每当我运行rvm use
或rvm use 1.9.2
或甚至在加载.rvmrc时,我都会收到以下错误:
error: unknown switch `1'
usage: git rebase [-i] [options] [--onto <newbase>] [<upstream>] [<branch>]
or: git rebase [-i] [options] --onto <newbase> --root [<branch>]
or: git-rebase [-i] --continue | --abort | --skip
Available options are
-v, --verbose display a diffstat of what changed upstream
-q, --quiet be quiet. implies --no-stat
--onto ... rebase onto given branch instead of upstream
-p, --preserve-merges
try to recreate merges instead of ignoring them
-s, --strategy ... use the given merge strategy
--no-ff cherry-pick all commits, even if unchanged
-m, --merge use merging strategies to rebase
-i, --interactive let the user edit the list of commits to rebase
-f, --force-rebase force rebase even if branch is up to date
-X, --strategy-option ...
pass the argument through to the merge strategy
--stat display a diffstat of what changed upstream
-n, --no-stat do not show diffstat of what changed upstream
--verify allow pre-rebase hook to run
--rerere-autoupdate allow rerere to update index with resolved conflicts
--root rebase all reachable commits up to the root(s)
--autosquash move commits that begin with squash!/fixup! under -i
--committer-date-is-author-date
passed to 'git am'
--ignore-date passed to 'git am'
--whitespace ... passed to 'git apply'
--ignore-whitespace passed to 'git apply'
-C ... passed to 'git apply'
Actions:
--continue continue
--abort abort and check out the original branch
--skip skip current patch and continue
Using /Users/ankitgoyal/.rvm/gems/ruby-1.9.2-p320
我尝试完全卸载rvm
并重新安装它,但它无效。我只是无法弄清楚它在哪里运行git rebase
。
这个错误真的很烦人。任何帮助,将不胜感激。谢谢。
答案 0 :(得分:1)
请检查你的别名和环境:
alias | grep rebase
env | grep rebase
可能:
alias | grep git
env | grep git
在最坏的情况下可能有一个功能
typeset -f | grep rebase