You can create a new local branch like this:
If you want to make it a remote branch, then it can be pushed to remote like this (make sure that you're in this new branch):
But sometimes, this newly pushed branch to remote doesn't get updated on remote location. Remote branches could be forced refreshed like this:
git checkout -b <branch_name>
If you want to make it a remote branch, then it can be pushed to remote like this (make sure that you're in this new branch):
git push origin <branch_name>
But sometimes, this newly pushed branch to remote doesn't get updated on remote location. Remote branches could be forced refreshed like this:
git remote update origin --pruneIf you want to delete a local branch:
git branch -d <branch_name>If you want to delete this branch in remote too, then:
git push origin :<branch_name>