Created
February 4, 2025 10:44
-
-
Save ao-jhelmich/df5750b4ed5a7e19af79bfee629543b5 to your computer and use it in GitHub Desktop.
Wip command for windows
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
function wip { | |
# Run git add . | |
git add . | |
if (-not $?) { return } # if git add fails, exit the function | |
./vendor/bin/pint --dirty | |
# Prompt the user | |
Write-Host "Niet wippen jij! Wat heb je veranderd?" | |
$message = Read-Host "Commit message" | |
# Commit with the message | |
git commit -m "$message" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment