This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Publish-RemoteReleaseBranch { | |
param ([string] $Suffix = $null, [switch] $Copy = $false, [switch] $SetGlobal = $false) | |
$currentBranch = git branch --show-current; | |
if (!$currentBranch.StartsWith("feature/")) { | |
Write-Host "Not a feature branch"; | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CleanBinObj { | |
Get-ChildItem .\ -include bin, obj -Recurse | ForEach-Object ($_) { remove-item $_.fullname -Force -Recurse } | |
} | |
Set-Alias Clean-BinObj CleanBinObj -Option AllScope | |
function CleanGitMergedMaster { | |
git checkout master; | |
git branch --merged | | |
ForEach-Object { $_.Trim('*', ' ') } | | |
Where-Object { ($_ -ne 'master') -and ($_ -ne 'develop') } | |