I'm getting this error when using one of my aliases 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.
This is the alias I use
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
I have nothing to commit nothing to commit, working directory clean
That means the remote name was empty, and the next command-line parameter (here
--prune
) was interpreted (wrongly) as the remote name.This may be a bug in git-up.rb, but the project git up is not maintained anymore. It says:
So, if you have git 2.9 or more, do:
Then you can replace
git up
by a simple classicgit pull
.