Skip to content

Commit 6371854

Browse files
committed
✨ Add ggfl, gpf and gpf!
Resolve #17
1 parent 058a83d commit 6371854

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/aliases.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ function ggf {
153153

154154
git push --force origin $CurrentBranch
155155
}
156+
function ggfl {
157+
$CurrentBranch = Get-Git-CurrentBranch
158+
159+
git push --force-with-lease origin $CurrentBranch
160+
}
156161
function ghh {
157162
git help $args
158163
}
@@ -223,6 +228,12 @@ function gp {
223228
function gpd {
224229
git push --dry-run $args
225230
}
231+
function gpf {
232+
git push --force-with-lease $args
233+
}
234+
function gpf! {
235+
git push --force $args
236+
}
226237
function gpoat {
227238
git push origin --all
228239
git push origin --tags

src/git-aliases.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ $FunctionsToExport = @(
4848
'gg',
4949
'gga',
5050
'ggf',
51+
'ggfl',
5152
'ghh',
5253
'ggsup',
5354
'gpsup',
@@ -70,6 +71,8 @@ $FunctionsToExport = @(
7071
'gmum',
7172
'gp',
7273
'gpd',
74+
'gpf',
75+
'gpf!',
7376
'gpoat',
7477
'gpristine',
7578
'gpu',

0 commit comments

Comments
 (0)