How to create a remote dev branch using git

To create a new branch, you only need to do this command in the current git project:
$ git branch dev; git checkout dev; git push origin dev

This command will create and checkout a new branch called “dev” and push it to the remote repository!