I'm working on the following git alias
[alias]
pushup = !git push --set-upstream origin `git branch | egrep "^\*" | awk -F"*" '{print $NF}'`
which is supposed to do a git push while simultaneously setting the upstream to the current branch.
The command
git push --set-upstream origin `git branch | egrep "^\*" | awk -F"*" '{print $NF}'`
works fine by itself on the command-line but I get a bad config file error when I try to use it as a git alias.
Clearly I don't understand something about the format of git aliases. Anyone want to enlighten me?