Skip to content

Commit 2051612

Browse files
authored
🔀 Added commands ggpull, ggl, ggp & ggpush (#13)
Added commands ggpull, ggl, ggp & ggpush
2 parents 96c7f70 + e9c6801 commit 2051612

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/aliases.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,13 @@ function gwip {
369369
git rm $(git ls-files --deleted) 2> $null
370370
git commit --no-verify -m "--wip-- [skip ci]"
371371
}
372+
function ggl {
373+
$CurrentBranch = Get-Git-CurrentBranch
374+
375+
git pull origin $CurrentBranch
376+
}
377+
function ggp {
378+
$CurrentBranch = Get-Git-CurrentBranch
379+
380+
git push origin $CurrentBranch
381+
}

src/git-aliases.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ $FunctionsToExport = @(
113113
'glum',
114114
'gvt',
115115
'gwch',
116-
'gwip'
116+
'gwip',
117+
'ggl',
118+
'ggp'
117119
)
118120

119121
Export-ModuleMember -Function $FunctionsToExport

0 commit comments

Comments
 (0)