SO I'm trying to setup this shortcut in bashrc to commtitting to git using the current branch name as the commit message and I have this:
git branch | grep "*" | sed "s/* //" | git commit -m
but running this line would instead display the
error: switch `m' requires a value
error....
how can I fix this such that executing this line will be equivalent to running git commit -m "CurrentBranchName"