During a typical day, I would change to the main branch, pull the latest from the remote, delete the merged branches. Over and over all day, every day of the work. Now instead of all that checkout and pulling, I made a Git JERK!
This is a combination of aliases in my local .gitconfig
and .bashrc
. Most of the stuff in the .gitconfig
is covered in the Alias for Git sanity article. Check it out b/c this Shell command won’t work without some of those. Here is the .bashrc
update:
alias jerk="git pull && git delete-merged && clear && git ls"
Here was my CLI before:
git cd main
git pull
git delete-merged
git ls
Simpler with a jerk…
git cd main && jerk