I just added
pl
and pu
recently, annoyed with the default behavior of a pull/push when you don't specify a remote and a refspec. It made me curious what aliases stackers are packing.[alias] co = checkout br = branch ci = commit st = status lg = log --oneline pl = !git pull $(git config branch.$(git name-rev --name-only HEAD).remote) $(git config branch.$(git name-rev --name-only HEAD).merge) pu = !git push $(git config branch.$(git name-rev --name-only HEAD).remote) $(git branch --show-current):$(git config branch.$(git name-rev --name-only HEAD).merge)
git commies
pl
andpu
(no idea how that magic works but looks cool) @k00bgclean
is pretty handy if you hate having a ton of old branches locally. It lists all merged branches and deletes the local branches that have been merged.-sb
to my status alias.oc
forco
alias authdeploy='cd ~/auth && git pull && cd client && npm run build && cd .. && sudo systemctl restart auth'