ProblemI made updates to files, added them to the local git repo and committed them to the index (git's local staging repo).
Then I realized that I had failed to create a new branch.
So the files I just updated are in an old branch.
How do I move these files to a new branch on the remote repo in one command?
SolutionUse one of my handy git aliases, of course!
$ git push-current-branch-to-another <CURRENT_OLD_BRANCH_NAME> <NEW_BRANCH_NAME>
This work is licensed under the Creative Commons Attribution 3.0 Unported License.