Skip to content

Instantly share code, notes, and snippets.

@justinline
Last active October 8, 2025 14:29
Show Gist options
  • Select an option

  • Save justinline/835d69c24cab3a06a3c736cf94f02409 to your computer and use it in GitHub Desktop.

Select an option

Save justinline/835d69c24cab3a06a3c736cf94f02409 to your computer and use it in GitHub Desktop.
My git aliases
# === 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