With one git command and a string argument <topic-name> how can I,
- Create a local branch named
topic/<topic-name> - Checkout this branch
- Ensure the first
git pushwith no args pushes toorigin/topic/<topic-name>without warnings or prompts - Ensure that subsequent
git pushcommands with no args push toorigin/topic/<topic-name>without warnings or prompts
Assume origin/topic/<topic-name> does not exist on as a branch on the remote repo.
I'm open to the use of git aliases to achieve this.