Skip to content

Instantly share code, notes, and snippets.

@will-molloy
Created June 17, 2025 05:00
Show Gist options
  • Save will-molloy/13800598a9844bb6b57183c94eab6b64 to your computer and use it in GitHub Desktop.
Save will-molloy/13800598a9844bb6b57183c94eab6b64 to your computer and use it in GitHub Desktop.
git alias
alias gitm="git checkout main && git pull"
alias gitp="git pull origin \$(git rev-parse --abbrev-ref HEAD)"
alias gitr="git fetch origin && git rebase origin \$(git rev-parse --abbrev-ref HEAD)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment