SeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前In case of firelemmy.worldimagemessage-square74fedilinkarrow-up1958arrow-down126
arrow-up1932arrow-down1imageIn case of firelemmy.worldSeeMinusMinus@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 年前message-square74fedilink
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up37·2 年前Slight correction. In case of fire: Git checkout -b firemyusername Git commit -am=“fire” Git push. We don’t want to have conflicts with code versions when going in on a rush, better to create a new branch. We can merge all the conflicts afterwards.
minus-squarePoolloverNathan@programming.devlinkfedilinkEnglisharrow-up1·edit-22 年前git push origin refs/stash@{$n}:stash/$USER/$n iirc
minus-squareflashgnash@lemm.eelinkfedilinkarrow-up2arrow-down1·2 年前Can’t you? Could’ve sworn you could I’ve done it with TFS source control at least, thought it would be possible with git
minus-squarereboot6675@sopuli.xyzlinkfedilinkarrow-up2·2 年前Oh man I hadn’t seen a git checkout -b in years haha since they introduced switch and restore, never looked back
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up2·2 年前I’ll admit I just press the buttons in my favourite IDE and had to look up the commands to remind myself, but yeah.
minus-squaremarx2k@lemmy.worldlinkfedilinkarrow-up1·edit-22 年前Gonna need some semicolons or double ampersand in there
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up2·2 年前Nah, what I need is doble new lines of code blocks since this is markdown and it fucked the display.
minus-squaremalijaffri@feddit.chlinkfedilinkarrow-up2·2 年前Here you go: git checkout -b firemyusername git commit -am="fire" git push
minus-squareFushuan [he/him]@lemm.eelinkfedilinkEnglisharrow-up1·2 年前I know how to do it, I was just lazy lmao.
Slight correction. In case of fire:
Git checkout -b firemyusername Git commit -am=“fire” Git push.
We don’t want to have conflicts with code versions when going in on a rush, better to create a new branch. We can merge all the conflicts afterwards.
Isn’t that what git stash is for though?
Can’t push a stash
git push origin refs/stash@{$n}:stash/$USER/$niircCan’t you? Could’ve sworn you could
I’ve done it with TFS source control at least, thought it would be possible with git
Oh man I hadn’t seen a
git checkout -bin years haha since they introducedswitchandrestore, never looked backI’ll admit I just press the buttons in my favourite IDE and had to look up the commands to remind myself, but yeah.
Gonna need some semicolons or double ampersand in there
Nah, what I need is doble new lines of code blocks since this is markdown and it fucked the display.
Here you go:
git checkout -b firemyusername git commit -am="fire" git pushI know how to do it, I was just lazy lmao.