Created
November 20, 2015 23:14
-
-
Save fhemberger/3676b14899a4591498b3 to your computer and use it in GitHub Desktop.
Revisions
-
fhemberger renamed this gist
Nov 20, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,6 @@ git rebase master git checkout master git merge --ff-only $branch git push origin master ``` This closes the PR directly. -
fhemberger created this gist
Nov 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ I'm using the [`git pr`](https://github.com/tj/git-extras/blob/master/Commands.md#git-pr) command from the [git-extras](https://github.com/tj/git-extras) toolset to check out a local copy of a PR. To rebase the PR again, I wrote a little script, which needs to be run in the PR's branch: ```bash #!/usr/bin/env bash branch=$(git symbolic-ref HEAD --short) git rebase master git checkout master git merge --ff-only $branch git push origin master ```