Skip to content

About

Powershell module with helper functions for daily git tasks

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

PSGitHelper

Revision History

Author Version Date Description

skr444

1.2

2025-06-02

skr444

1.1

2025-06-02

  • Updated module version.

  • Removed Known bugs section.

skr444

1.0

2025-06-01

Created document.

1. Module

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.

2. Git functions

Overview of git convenience functions.

Name Comment Alias

Get-GitStatus

git status

gist

New-GitWipCommit

Combines git add ., git commit -m ".." and git push

wip

Remove-OrphanedLocalBranches

Deletes local branches that have no remote branch.

gpl

Update-LocalGitRepository

Performs git fetch --all --prune with the optional --prune-tags switch.

gfa

3. Installation

  1. Clone this repo with: git clone https://github.com/skr444/psgithelper.git

  2. Run the build script.

  3. Decide which Powershell profile you want to install this module in.

    • Find available Powershell module locations with $Env:PSModulePath -split ';'

  4. Copy the entire output folder PSGitHelper to the desired module folder.

    • See the module available for import with Get-Module -ListAvailable.

  5. 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.

4. Changes

Date Version Changes

2025-06-02

1.0.2

Unified Powershell directives.
See #5

2025-06-02

1.0.1

Fixed issue in build script.
See #2

2025-06-01

1.0.0

Initial version.

5. Development

Use the samples/development/Get-ModuleMetaData.ps1 script to obtain a list of items to update the manifest or module script.

6. See also

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.

About

Powershell module with helper functions for daily git tasks

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages