Skip to content

Instantly share code, notes, and snippets.

Joshua Gall SirkleZero

View GitHub Profile
SirkleZero / project-stats.ps1
Created Apr 19, 2015
A simple Powershell script to analyze a solution directory and provide simple code statistics.
View project-stats.ps1
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[string] $path
[string[]] $extensions =
SirkleZero / git-aliases.gitconfig
Last active Apr 14, 2018
A collection of useful Git aliases
View git-aliases.gitconfig
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
SirkleZero / git-all.ps1
Created Sep 25, 2012
This powershell script will enumerate the Git projects in a parent directory, perform a fetch on each remote and then print out the status of the repo.
View git-all.ps1
$global:GitAllSettings = New-Object PSObject -Property @{
FolderForegroundColor = [ConsoleColor]::Cyan
function git-all()
$s = $global:GitAllSettings
dir -r -i .git -fo | % {
pushd $_.fullname
cd ..
SirkleZero / killscc.ps1
Created May 26, 2012 — forked from stephengodbold/killscc.ps1
Removes source control bindings, and optionally backs up the original files
View killscc.ps1
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[string] $folder,
[switch] $backup
function killReadOnlyFlag(){
get-childitem "$folder" -recurse | % {
# Test for ReadOnly flag and remove if present
You can’t perform that action at this time.