cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 1 month agoWhat's a handy terminal command you use often?message-squaremessage-square279fedilinkarrow-up1227arrow-down17
arrow-up1220arrow-down1message-squareWhat's a handy terminal command you use often?cybercitizen4@lemm.ee to Asklemmy@lemmy.ml · 1 month agomessage-square279fedilink
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up1·29 days agoSo that’s making git push always push to the current branch?
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up1·edit-229 days agoWhen you’re pushing a new branch you’ve never pushed before you need the -u command. That’s what this alias is for. As long as the config’s push.default isn’t matching, git push without arguments will only push the current branch.
So that’s making
git push
always push to the current branch?When you’re pushing a new branch you’ve never pushed before you need the
-u
command. That’s what this alias is for.As long as the config’s
push.default
isn’tmatching
,git push
without arguments will only push the current branch.