Posts
All the articles I've posted.
where.exe PowerShell alternative
How to use Get-Command as a PowerShell native alternative to the where.exe utility for locating executables.
Read more…Kill Bill _W conhost
PowerShell script to kill all orphaned conhost.exe processes while preserving the one attached to the current session.
Read more…git hook proxy
Final implementation of a PowerShell git hook proxy that extracts and runs hooks from the repo for both client and server sides.
Read more…git - fight with pull merges
How to eliminate pull-merge commits using pull --rebase, autosetuprebase, --preserve-merges, and rerere.
Read more…git undo
How to undo a git pull --rebase or other destructive git operations using git reflog and reset.
Read more…git checkout on bare repo
How to extract files and folders from a bare git repository using git archive, avoiding encoding and binary issues.
Read more…git server-side hooks - maintenance
Pattern for self-updating git server-side hooks: a proxy script checks out hook code directly from the repository on each run.
Read more…Detect Console mode vs UI
Reliable PowerShell technique to detect whether a git hook runs in a console or a GUI environment like Git Extensions.
Read more…Get TeamCity build status from PowerShell
PowerShell function to query TeamCity REST API and detect broken builds, including currently running ones.
Read more…Git - Get Push Date
How to record and retrieve the actual push date for git commits using git notes and server-side post-receive hooks.
Read more…