I created a local branch which I want to \'push\' upstream. There is a similar question here on Stack Overflow on how to track a newly created remote branch.
Howeve
Creating a local branch from an existing branch (can be master/ develop/ any-other-branch).
git checkout -b branch_name
Push this to remote
git push -u remote_name local_branch_name:remote_branch_name
Here,
If we remove the local and remote branch names, it will have the format
git push -u remote_name branch_name
This will push the local branch to remote and with the same name as the local branch branch_name. The local branch will be tracking the remote branch as well.