Created
May 23, 2022 21:40
-
-
Save tim-bellette/765802b16935409da26d2301e083609b to your computer and use it in GitHub Desktop.
PowerShell script to check if the current repo is at the HEAD of the origin
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
[regex]::Matches((git ls-remote origin refs/heads/main), "^([\w\d]*)").Value -eq (git rev-parse HEAD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment