@[email protected] to [email protected] • 2 days agoWhat's a handy terminal command you use often?message-square259fedilinkarrow-up1220arrow-down14
arrow-up1216arrow-down1message-squareWhat's a handy terminal command you use often?@[email protected] to [email protected] • 2 days agomessage-square259fedilink
minus-squareCavemanlinkfedilink6•21 hours agog-push which is alias for git push origin `git branch --show` Which I’m writing on my phone without testing or looking
minus-squareJackbyDevlinkEnglish2•5 hours agogit config --global alias.pusho 'push --set-upstream origin HEAD' You’re welcome.
minus-squareCavemanlinkfedilink1•53 minutes agoSo that’s making git push always push to the current branch?
minus-squareCruxil 🇦🇺linkfedilinkEnglish2•15 hours agogit push origin HEAD is a slightly shorter way of doing the same thing, even though you have an alias anyway lol
g-push
which is alias forgit push origin `git branch --show`
Which I’m writing on my phone without testing or looking
git config --global alias.pusho 'push --set-upstream origin HEAD'
You’re welcome.
So that’s making
git push
always push to the current branch?git push origin HEAD
is a slightly shorter way of doing the same thing, even though you have an alias anyway lol