Skip to content

Commit

Permalink
🔀 Merge pull request #47 from Cryt1c/master
Browse files Browse the repository at this point in the history
  • Loading branch information
gluons authored Dec 31, 2024
2 parents 5f0f058 + b84cea5 commit c6b99b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/aliases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ function gcs {
function gd {
git diff $args
}
function gds {
git diff --staged $args
}
function gdca {
git diff --cached $args
}
Expand Down Expand Up @@ -311,6 +314,11 @@ function grhh {
function grmv {
git remote rename $args
}
function groh {
$CurrentBranch = Get-Git-CurrentBranch

git reset origin/$CurrentBranch --hard
}
function grrm {
git remote remove $args
}
Expand Down
2 changes: 2 additions & 0 deletions src/git-aliases.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ $FunctionsToExport = @(
'gcpc',
'gcs',
'gd',
'gds',
'gdca',
'gdt',
'gdw',
Expand Down Expand Up @@ -96,6 +97,7 @@ $FunctionsToExport = @(
'grh',
'grhh',
'grmv',
'groh',
'grrm',
'grset',
'grs',
Expand Down

0 comments on commit c6b99b7

Please sign in to comment.