Created
November 3, 2024 11:27
-
-
Save lanefu/b3ab6d18820886a4ac1cfb6b204ff729 to your computer and use it in GitHub Desktop.
Revisions
-
lanefu created this gist
Nov 3, 2024 .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,7 @@ #!/bin/bash REMOTE_REPO=origin PR=${1} git fetch -v ${REMOTE_REPO} +refs/pull/${PR}*:refs/remotes/${REMOTE_REPO}/pull/${PR}* git checkout -f ${REMOTE_REPO}/pull/${PR}/merge