Skip to content

Instantly share code, notes, and snippets.

@ao-jhelmich
Created February 4, 2025 10:44
Show Gist options
  • Save ao-jhelmich/df5750b4ed5a7e19af79bfee629543b5 to your computer and use it in GitHub Desktop.
Save ao-jhelmich/df5750b4ed5a7e19af79bfee629543b5 to your computer and use it in GitHub Desktop.
Wip command for windows
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