##############
## INIT GIT ##
##############
git init
git remote add origin <origin-name>
git checkout -b <new-branch-name>
git add .
git commit -m "Commit message"
git push origin <branch-name>
###################
## RENAME BRANCH ##
###################
# First checkout to the branch which you want to rename
git branch -m old_branch new_branch
git push -u origin new_branch
#To remove old branch from remote:
git push origin :old_branch