I am lost in different articles and stackoverflow questions and I am unable to put my head around to figure out the command for GIT. Here is what i want to do
Now, I want to
Master
so that i can create the pull request
. Once pull approved it will be merged
into the master. But how would i push my local to upstream so that the branch is created and i can issue pull request ? Git has no concept of pull requests, so if you are using Git proper then you merely need to push your local branch to the remote (typically called origin).
git push -u origin my-branch-name
This will push the branch "my-branch-name" to the origin remote. The "-u" argument will set the upstream branch for you so that future pushes can be done with just "git push". At this point, others can see and review it (if you wish) before you merge it to master, like so:
git checkout master
git merge my-branch-name
git push
If you are talking about GitHub, the workflow is slightly different. You need to
GitHub has a lot of good documentation around this: https://help.github.com/categories/collaborating-on-projects-using-pull-requests/