File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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+ }
156161function ghh {
157162 git help $args
158163}
@@ -223,6 +228,12 @@ function gp {
223228function 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+ }
226237function gpoat {
227238 git push origin -- all
228239 git push origin -- tags
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments