Skip to content

Instantly share code, notes, and snippets.

View ijkeleher-anz's full-sized avatar
💭
I am growing stronger 🌱

Isaac Keleher ijkeleher-anz

💭
I am growing stronger 🌱
View GitHub Profile
@ijkeleher-anz
ijkeleher-anz / .gitconfig_automated_pr_func
Created May 15, 2026 08:21
automatically push branch and create pull request from commit history
# add this to your ~/.gitconfig
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[alias]
pr = "!f() { base=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5); git push -u origin HEAD && gh pr create --title \"$(git log --reverse --format=%s origin/$base..HEAD | head -1)\" --body \"$(git log --format='- %s' origin/$base..HEAD)\"; }; f"