> 你要求从远程拉取 '--prune'
> You asked to pull from the remote '--prune'
我在使用我的其中一个别名时遇到此错误 bdone
You asked to pull from the remote '--prune', but did not specify a
branch. Because this is not the default configured remote for your
current branch, you must specify a branch on the command line.
这是我使用的别名
alias.bclean !f() { git branch --merged ${1-master} | grep -v ${1-master}$ | xargs git branch -d; }; f
alias.bdone !f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f
我没有什么可承诺的nothing to commit, working directory clean
You asked to pull from the remote '--prune
', but did not specify a branch
这意味着远程名称为空,下一个命令行参数(此处 --prune
)被(错误地)解释为远程名称。
这可能是 git-up.rb, but the project git up 中的错误,不再维护。它说:
As of Git 2.9, git pull --rebase --autostash
does basically the same thing.
因此,如果您有 ,请执行:
git config --global pull.rebase true
git config --global rebase.autoStash true
那你可以把git up
换成简单经典的git pull
。
我在使用我的其中一个别名时遇到此错误 bdone
You asked to pull from the remote '--prune', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.
这是我使用的别名
alias.bclean !f() { git branch --merged ${1-master} | grep -v ${1-master}$ | xargs git branch -d; }; f
alias.bdone !f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f
我没有什么可承诺的nothing to commit, working directory clean
You asked to pull from the remote '
--prune
', but did not specify a branch
这意味着远程名称为空,下一个命令行参数(此处 --prune
)被(错误地)解释为远程名称。
这可能是 git-up.rb, but the project git up 中的错误,不再维护。它说:
As of Git 2.9,
git pull --rebase --autostash
does basically the same thing.
因此,如果您有
git config --global pull.rebase true
git config --global rebase.autoStash true
那你可以把git up
换成简单经典的git pull
。