Fushuan [he/him]
link
fedilink
English
3610M

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?

Drew
link
fedilink
410M

Can’t push a stash

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

@PoolloverNathan@programming.dev
link
fedilink
English
1
edit-2
10M

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

@marx2k@lemmy.world
link
fedilink
1
edit-2
10M

Gonna need some semicolons or double ampersand in there

Fushuan [he/him]
link
fedilink
English
210M

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

malijaffri
link
fedilink
210M

Here you go:

git checkout -b firemyusername
git commit -am="fire"
git push
Fushuan [he/him]
link
fedilink
English
110M

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

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

Fushuan [he/him]
link
fedilink
English
210M

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

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.5K Comments
  • Modlog