I create a new branch in Git:
git branch my_branch
Push it:
git push origin my_branch
Now say someone mad
You can set up a really good alias that can handle this without the overly verbose syntax.
I have the following alias in ~/.gitconfig
:
po = "!git push -u origin \"$(git rev-parse --abbrev-ref HEAD)\""
After making a commit on a new branch, you can push your new branch by simply typing the command:
git po