I am trying to test a transfer request to my local development unit so that I can run some tests on it. I found a link to this here , but I cannot get it to work correctly.
git fetch refs/pull-requests/$PR_NO/from:$LOCAL_BRANCH
I'm not sure what I should replace $LOCAL_BRANCHwith. I tried the "master", but I will get an exception.
$ git fetch origin refs/pull-requests/30/from:master
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
What is the right way to do this?
source
share