Skip to content

Latest commit

 

History

History
88 lines (48 loc) · 1.92 KB

README.md

File metadata and controls

88 lines (48 loc) · 1.92 KB

PowershellScripts

Collection of useful powershell scripts and modules published to PowerShell Gallery

Deletes orphan branches deleted from remote but present in local.

1.1 Installation

Install-Module -Name GitCleanOrphanBranches

1.2 Aliases

rgob

1.3 Usage

  • Go to a git directory and run Remove-GitOrphanBranches
  • Pass Y when prompted.

Deletes bin, obj folders recursively.

2.1 Installation

Install-Module -Name DeleteBinObjFolders

2.2 Aliases

rbof

2.3 Usage

  • Run Remove-BinObjFolders
  • To exclude few folders pass Exclude parameter with comma separated strings.
    Remove-BinObjFolders -Exclude folder1,folder2,folderN
  • Pass Y when prompted

3.1 Installation

Install-Module -Name GetLockingProcess

3.2 Aliases

glp

3.3 Usage

  • Run Get-LockingProcesses -Path {path}

Warning

Windows only

4.1 Installation

Install-Module -Name RemoveTempFiles

4.2 Aliases

None.

4.3 Usage

  • Run Remove-TempFiles.

Warning

Windows only

5.1 Installation

Install-Module -Name Rename-GitBranch

5.2 Aliases

None.

5.3 Usage

  • Run Rename-GitBranch -OldName {old-branch-name} -NewName {new-branch-name} -Remote {default:origin}.
  • Run Rename-GitBranch -OldName {old-branch-name} -NewName {new-branch-name} -Remote {default:origin} -DryRun with dryrun flag to know what commands will run.