try git push -u fork mybranch

> On 1 Jul 2017, at 22:57, amit mehta <[email protected]> wrote:
> 
> I have a question regarding "rework on pull request".
> 
> For the pull request, I followed the procedure mentioned here [1]
> After receiving the comment on the pull request, I did some rework.
> Note that the rework was also done in my local branch (mybranch,
> This is the same branch which I used for the initial pull request i.e.
> $ git push fork mybranch)
> 
> so, currently I'm in mybranch ($ git branch) and when I try to do
> push (based on the this we search on this topic), I get the
> following error message:
> 
> ---------------------------------------------------------------------------------------
> [amit@discworld apache-mynewt-core]$ git remote -v
> fork https://github.com/bartledan/incubator-mynewt-core (fetch)
> fork https://github.com/bartledan/incubator-mynewt-core (push)
> origin https://github.com/apache/incubator-mynewt-core.git (fetch)
> origin https://github.com/apache/incubator-mynewt-core.git (push)
> 
> [amit@discworld apache-mynewt-core]$ git branch
>  master
> * mybranch
> 
> [amit@discworld apache-mynewt-core]$ git pull --rebase origin master
> From https://github.com/apache/incubator-mynewt-core
> * branch            master     -> FETCH_HEAD
> Current branch mybranch is up to date.
> 
> [amit@discworld apache-mynewt-core]$ git push
> 
> fatal: The current branch mybranch has no upstream branch.
> To push the current branch and set the remote as upstream, use
> 
>   git push --set-upstream origin mybranch
> ---------------------------------------------------------------------------------------
> 
> Which i obviously cannot do (upstream mybranch), as I do not
> have commit rights to remote repo, i.e.
> 'https://github.com/apache/incubator-mynewt-core.git/)
> 
> So, what is the way of working for "rework on pull request"
> 
> [1] 
> https://cwiki.apache.org/confluence/display/MYNEWT/Submitting+Pull+Requests
> [2] https://stackoverflow.com/a/7947337
> 
> Thank you for your help.
> 
> -Amit
> 
> P.S.
> I did ask this same question on mynewt slack, but didn't get any
> response; weekend effect I guess :)
> --
> Sent from Bahamas, while drinking chi-chi and piƱa colada.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to