Skip to content

Instantly share code, notes, and snippets.

@jbouhier
Last active February 5, 2026 21:21
Show Gist options
  • Select an option

  • Save jbouhier/a9028b62c316cb8864e88849248b0a8b to your computer and use it in GitHub Desktop.

Select an option

Save jbouhier/a9028b62c316cb8864e88849248b0a8b to your computer and use it in GitHub Desktop.
Yeet commit
#!/usr/bin/env fish
# yeet - quick git workflow
# Usage: yeet "commit message"
if test (count $argv) -eq 0
echo "Usage: yeet \"commit message\""
exit 1
end
# Stage all
git add -A
# Show diff with stats
echo "Changes to be committed:"
git diff --cached --stat
echo ""
git diff --cached --compact-summary
echo ""
# Confirm
read -P "Press ENTER to commit and push (Ctrl+C to cancel): "
# Commit and push
git commit -m "$argv"
git push
echo "✓ Yeeted"
@jbouhier
Copy link
Author

jbouhier commented Feb 4, 2026

Setup

Save to

~/.config/fish/functions/yeet.fish
chmod +x ~/.config/fish/functions/yeet.fish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment