cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 2 months agoWhat's a handy terminal command you use often?message-squaremessage-square249fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareWhat's a handy terminal command you use often?cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 2 months agomessage-square249fedilink
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up0·2 months agog-push which is alias for git push origin `git branch --show` Which I’m writing on my phone without testing or looking
minus-squareCruxil 🇦🇺@aussie.zonelinkfedilinkEnglisharrow-up0·2 months agogit push origin HEAD is a slightly shorter way of doing the same thing, even though you have an alias anyway lol
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up0·2 months agogit config --global alias.pusho 'push --set-upstream origin HEAD' You’re welcome.
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up0·2 months agoSo that’s making git push always push to the current branch?
g-push
which is alias forgit push origin `git branch --show`
Which I’m writing on my phone without testing or looking
git push origin HEAD
is a slightly shorter way of doing the same thing, even though you have an alias anyway lolgit config --global alias.pusho 'push --set-upstream origin HEAD'
You’re welcome.
So that’s making
git push
always push to the current branch?