Aim
To merge a pull request.
How?
Let’s take Staticman PR 231 as an example. I would like to test it before
commiting this merget to Heroku.
$ cd ~/staticman
$ git branch -a
* deploy
dev
master
...
$ git remote -v
eduardoboucas https://github.com/eduardoboucas/staticman.git (fetch)
eduardoboucas https://github.com/eduardoboucas/staticman.git (push)
heroku https://git.heroku.com/staticman3.git (fetch)
heroku https://git.heroku.com/staticman3.git (push)
...
$ git pull eduardoboucas pull/231/head:deploy
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Total 18 (delta 10), reused 10 (delta 10), pack-reused 8
Unpacking objects: 100% (18/18), done.
From https://github.com/eduardoboucas/staticman
! [rejected] refs/pull/231/head -> deploy (non-fast-forward)
I executed the last command on branch dev
. I didn’t have time to figure out
the reason for this error. The following commands should work.
[Read More]