Tag: powershell
All the articles with the tag "powershell".
-
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.
-
Parse git merge commit messages
PowerShell function with regex patterns to parse git's auto-generated merge commit messages and extract branch names.
-
Useful git hooks - Part 4
Summary of an expanded git hooks suite enforcing branch merge order, rebase safety, TeamCity build status, and push timing rules.
-
WTF_ PowerShell 3 _ Cygwin
PowerShell -Version 2 flag is ignored when launched from Cygwin, always running PowerShell 3 instead.
-
PowerShell 3 bug with stack trace
PowerShell 3 shows incorrect line numbers in stack traces when CmdletBinding and ErrorActionPreference are combined; trap workaround included.