[英]unknown switch `1` error while using rvm
> 庆典 - - > prezto近日笔者从OH-MY-zsh的迁移。 在这一切期间,我莫名其妙地弄乱了我的rvm。 现在,每当我运行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
。
这个错误真的很烦人。 任何帮助,将不胜感激。 谢谢。
请检查您的别名和环境:
alias | grep rebase
env | grep rebase
可能是:
alias | grep git
env | grep git
最坏的情况下可能有一个功能
typeset -f | grep rebase
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.