Pushing and deleting remote branches with git
Creating new branches and deleting them locally is an easy task with git, but when it comes to doing it for a remote repository, happily, it is very easy too.
Pushing a branch
If you have a new branch named mybranch on your local repository and you want to push it to a remote so other people can see it you can do:
1
git push remotename mybranch
Most of the time you will probably want to push to the origin remote, so the command will be something like this:
1
git push origin mybranch