1

我最近从oh-my-zsh -> bash -> prezto 迁移。在这一切期间,我不知何故弄乱了我的 rvm。现在,每当我运行rvm uservm 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

这个错误真的很烦人。任何帮助,将不胜感激。谢谢你。

4

1 回答 1

1

请检查您的别名和环境:

alias | grep rebase
env   | grep rebase

可能:

alias | grep git
env   | grep git

在最坏的情况下可能有一个功能

typeset -f | grep rebase
于 2013-06-20T15:45:49.677 回答