Posts
All the articles I've posted.
-
Kill Bill _W conhost
PowerShell script to kill all orphaned conhost.exe processes while preserving the one attached to the current session.
-
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.
-
git - fight with pull merges
How to eliminate pull-merge commits using pull --rebase, autosetuprebase, --preserve-merges, and rerere.
-
git undo
How to undo a git pull --rebase or other destructive git operations using git reflog and reset.
-
git checkout on bare repo
How to extract files and folders from a bare git repository using git archive, avoiding encoding and binary issues.
-
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.
-
Get TeamCity build status from PowerShell
PowerShell function to query TeamCity REST API and detect broken builds, including currently running ones.
-
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.
-
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.
-
Interesting git helpers snippets
PowerShell git helper snippets: get current branch, resolve refs, test fast-forward, find commit's originating branch.