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
param ( | |
[ValidateScript({$_ | Test-Path -PathType Container})] | |
[Parameter(Mandatory=$true)] | |
[string] $path | |
) | |
[string[]] $extensions = | |
".asp", | |
".Domain", | |
".Repository", |
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
[alias] | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
st = status -b -s | |
sc = commit -S -m | |
last = log -1 HEAD | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
testmerge = merge --no-commit --no-ff |
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
$global:GitAllSettings = New-Object PSObject -Property @{ | |
FolderForegroundColor = [ConsoleColor]::Cyan | |
} | |
function git-all() | |
{ | |
$s = $global:GitAllSettings | |
dir -r -i .git -fo | % { | |
pushd $_.fullname | |
cd .. |
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
param ( | |
[ValidateScript({$_ | Test-Path -PathType Container})] | |
[Parameter(Mandatory=$true)] | |
[string] $folder, | |
[switch] $backup | |
) | |
function killReadOnlyFlag(){ | |
get-childitem "$folder" -recurse | % { | |
# Test for ReadOnly flag and remove if present |