Last active
February 5, 2026 21:21
-
-
Save jbouhier/a9028b62c316cb8864e88849248b0a8b to your computer and use it in GitHub Desktop.
Yeet commit
This file contains hidden or 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
| #!/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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup
Save to