Last active
October 8, 2025 14:29
-
-
Save justinline/835d69c24cab3a06a3c736cf94f02409 to your computer and use it in GitHub Desktop.
My git aliases
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
| # === Lazy === | |
| alias.st status | |
| # === Rebase Stuff === | |
| # Please 🥺 - useful for rebasers | |
| alias.please push --force-with-lease | |
| # Squash all fixup commits | |
| alias.squash git rebase -i origin/main --autosquash | |
| # === Moving around quickly === | |
| # Show recent branch names | |
| alias.recent for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)' | |
| # Quickly commit all work instead of stashing | |
| alias.wip !git add . && git commit -m "WIP" --no-verify | |
| # Start work on the most recent commit, used often with `git wip` | |
| alias.edit reset --soft HEAD~1 | |
| alias.soft reset --soft HEAD~1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment