Skip to content

Commit e4e903f

Browse files

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/aliases.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,11 @@ function gpd {
377377
git push --dry-run $args
378378
}
379379
function gpf {
380-
# todo --force-if-includes
381-
git push --force-with-lease $args
380+
if ([semver](Get-GitSemVer) -ge [semver]"2.30") {
381+
git push --force-with-lease --force-if-includes $args
382+
} else {
383+
git push --force-with-lease $args
384+
}
382385
}
383386
function gpf! {
384387
git push --force $args

0 commit comments

Comments
 (0)