3 ms·
I have these for merging a PR into develop and master respectively. Usage is `git pr <#>` pr = "!f() { git checkout develop && git fetch -fu ${2:-origin} re
by danielsamuels 11y ago
I have these for merging a PR into develop and master respectively. Usage is `git pr <#>`
pr = "!f() { git checkout develop && git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1 && git rebase -i origin/develop && git checkout develop && git merge - && git push; }; f"
prm = "!f() { git checkout master && git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1 && git rebase -i origin/master && git checkout master && git merge - && git push; }; f"
- scrollaway 11y agoI remember trying and failing to get exactly that working. I'll give yours a shot, thanks!