Skip to content

Commit c6b99b7

Browse files
authored
🔀 Merge pull request #47 from Cryt1c/master
2 parents 5f0f058 + b84cea5 commit c6b99b7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/aliases.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function gcs {
136136
function gd {
137137
git diff $args
138138
}
139+
function gds {
140+
git diff --staged $args
141+
}
139142
function gdca {
140143
git diff --cached $args
141144
}
@@ -311,6 +314,11 @@ function grhh {
311314
function grmv {
312315
git remote rename $args
313316
}
317+
function groh {
318+
$CurrentBranch = Get-Git-CurrentBranch
319+
320+
git reset origin/$CurrentBranch --hard
321+
}
314322
function grrm {
315323
git remote remove $args
316324
}

src/git-aliases.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ $FunctionsToExport = @(
4343
'gcpc',
4444
'gcs',
4545
'gd',
46+
'gds',
4647
'gdca',
4748
'gdt',
4849
'gdw',
@@ -96,6 +97,7 @@ $FunctionsToExport = @(
9697
'grh',
9798
'grhh',
9899
'grmv',
100+
'groh',
99101
'grrm',
100102
'grset',
101103
'grs',

0 commit comments

Comments
 (0)