git branch set pull upstream code example
Example: git configure upstream for branch push and pull
# if remote_branch_name == local_branch_name
$ git push -u origin HEAD
# if remote_branch_name == local_branch_name
$ git push -u origin HEAD