alias push="git push -u origin HEAD"
alias src="source ~/.zshrc"
alias prune-repo='git branch | grep -ve " master$" | xargs git branch -D'
After creating a new git branch, the best way to push the branch up to the remote location is with this
If you need to reload your terminal settings because you made a change to your .zshrc or .bashrc file, it’s cumbersome to remember the source command. This
Sometimes, when you have checked out many Git branches, those branches will eventually go stale. It can be a slow process to checkout a branch that is thousands of commits behind master locally, when you know the remote branch is closer to, or even ahead of master.