File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ function gcs {
136
136
function gd {
137
137
git diff $args
138
138
}
139
+ function gds {
140
+ git diff -- staged $args
141
+ }
139
142
function gdca {
140
143
git diff -- cached $args
141
144
}
@@ -311,6 +314,11 @@ function grhh {
311
314
function grmv {
312
315
git remote rename $args
313
316
}
317
+ function groh {
318
+ $CurrentBranch = Get-Git - CurrentBranch
319
+
320
+ git reset origin/ $CurrentBranch -- hard
321
+ }
314
322
function grrm {
315
323
git remote remove $args
316
324
}
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ $FunctionsToExport = @(
43
43
' gcpc' ,
44
44
' gcs' ,
45
45
' gd' ,
46
+ ' gds' ,
46
47
' gdca' ,
47
48
' gdt' ,
48
49
' gdw' ,
@@ -96,6 +97,7 @@ $FunctionsToExport = @(
96
97
' grh' ,
97
98
' grhh' ,
98
99
' grmv' ,
100
+ ' groh' ,
99
101
' grrm' ,
100
102
' grset' ,
101
103
' grs' ,
You can’t perform that action at this time.
0 commit comments