930
In case of fire (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] fushuan@lemm.ee 37 points 1 year ago

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.

[-] reboot6675@sopuli.xyz 2 points 1 year ago

Oh man I hadn't seen a git checkout -b in years haha since they introduced switch and restore, never looked back

[-] fushuan@lemm.ee 2 points 1 year ago

I'll admit I just press the buttons in my favourite IDE and had to look up the commands to remind myself, but yeah.

[-] flashgnash@lemm.ee 2 points 1 year ago

Isn't that what git stash is for though?

[-] crmsnbleyd@sopuli.xyz 4 points 1 year ago
[-] PoolloverNathan@programming.dev 1 points 1 year ago* (last edited 1 year ago)

git push origin refs/stash@{$n}:stash/$USER/$n iirc

[-] flashgnash@lemm.ee 1 points 1 year ago

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

[-] marx2k@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Gonna need some semicolons or double ampersand in there

[-] fushuan@lemm.ee 2 points 1 year ago

Nah, what I need is doble new lines of code blocks since this is markdown and it fucked the display.

[-] malijaffri@feddit.ch 2 points 1 year ago

Here you go:

git checkout -b firemyusername
git commit -am="fire"
git push
[-] fushuan@lemm.ee 1 points 1 year ago

I know how to do it, I was just lazy lmao.

this post was submitted on 25 Nov 2023
930 points (97.3% liked)

Programmer Humor

32558 readers
492 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS