Revision History
| Author | Version | Date | Description |
|---|---|---|---|
skr444 |
1.2 |
2025-06-02 |
|
skr444 |
1.1 |
2025-06-02 |
|
skr444 |
1.0 |
2025-06-01 |
Created document. |
- Identifier
-
PSGitHelper
- Latest stable version
-
1.0.2
- Minimum Powershell version
-
5.1
This module contains a few Powershell cmdlets that provide aliases for frequently used git commands. Creating aliases for external commands can be achieved in various ways in Powershell. This module is merely a bundle of my most used git commands.
Overview of git convenience functions.
| Name | Comment | Alias |
|---|---|---|
Get-GitStatus |
|
|
New-GitWipCommit |
Combines |
|
Remove-OrphanedLocalBranches |
Deletes local branches that have no remote branch. |
|
Update-LocalGitRepository |
Performs |
|
-
Clone this repo with:
git clone https://github.com/skr444/psgithelper.git -
Run the build script.
-
Decide which Powershell profile you want to install this module in.
-
Find available Powershell module locations with
$Env:PSModulePath -split ';'
-
-
Copy the entire output folder
PSGitHelperto the desired module folder.-
See the module available for import with
Get-Module -ListAvailable.
-
-
Open a Powershell console and import the module with
Import-Module -Name PSGitHelper.-
The module will only be available for the duration of the session.
-
|
Note
|
This module will be published on the Powershell Gallery some day. |
Use the samples/development/Get-ModuleMetaData.ps1 script to obtain a list of items to update the manifest or module script.
If you don’t already know posh-git, you will definitely like that too. The posh-git module is vastly more sophisticated and has been an inspiration for this one.